Go-CookieCutter is an starter project for Golang micro service application
With the template, you can easily start a backend server development with a little tweaks in the code.
- Golang
- Docker (Optional but recommended)
- Postgresql (Only if you are not using
docker
)
[Note: you can you use any sql database but required to change the sql driver in config
as per the database server.]
Coming Soon
Clone the repository,
git clone https://github.com/tech-thinker/go-cookiecutter.git
There is no need to install dependencies if you are using docker
.
Install required dependencies,
cd go-cookiecutter
go mod tidy
Update soon
Defining environment variables,
cp docker/.env{.sample,}
Edit .env
with your favorite editor.
Export those variables,
export $(cat docker/.env | xargs)
Using Docker,
cd docker
docker-compose up --build
Test running,
curl http://localhost:3000/ping
- open sourced under MIT License