API template using Go and Gin
MIT License
Komeet is a simple, but powerful API template to start your APIs with Go. It uses Gin and Cobra as the base dependencies for creating a lightweight and fast API. It comes with a lot of things out-of-the-box, so you can focus on your API instead of worrying on how to build the base architecture for it.
There are two ways of using this template:
Click the Use this template
button in the GitHub repository page.
git clone [email protected]:WendellAdriel/komeet.git my-app && cd my-app && rm -rf .git
make configure
This will copy the configuration files from the sample ones. Make sure to update the configuration files with the needed values.
make build
make run
Komeet ships with a create-user
command for creating users to the application (great for dev envs):
make create-user NAME="John Doe" [email protected] PASSWORD=secret
For non-local envs, you'll need only the content from the dist
folder to be added to your server/container.
These are the steps for setting a CI/CD pipeline for Komeet applications:
1 - Run the make build
command to generate the dist
folder.
2 - Place the contents of the dist
folder in your server/container.
3 - Add the config.json
and secrets.json
files to the same folder from point 2.
4 - Run the ./komeet serve
command.
Check the Contributing Guide.