go-cookiecutter
Overview
Go-CookieCutter is an starter project for Golang micro service application
Purpose
With the template, you can easily start a backend server development with a little tweaks in the code.
Requirements
[Note: you can you use any sql database but required to change the sql driver in config
as per the database server.]
How to create project using this template?
Coming Soon
Installation
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
Migration
Update soon
How to run?
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
Contribute
License