A REST API starter kit with straightforward approach and minimal dependencies.
- Go 1.24 or higher
dockerorpodman
gh repo create my-rest-api --template ferdiebergado/kubokit --public --clone- Rename
.env.exampleto.envand update the values based on your environment.
mv .env.example .env- Generate an app key.
make app-key- Run the api in development mode.
make dev- Send requests to the api at localhost:8888.
curl -X POST -H 'Content-Type: application/json' -d '{"email": "abc@example.com", "password": "test"}' localhost:8888/auth/loginCreate a .env.testing file by copying .env.
cp .env .env.testingUpdate the values according to your testing environment.
To run unit tests, run the following command:
make test ENV=testingTo run integration tests, run the following command:
make test-integration ENV=testingCommon development tasks are captured in the Makefile. To view those tasks, run the following command:
makeIf a required tool is missing, it will be automatically installed.