Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

efimovalex/golang-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Part 1: API Service

(part 2 at the bottom)  

Running the service in docker env

docker compose up -d
make shell
make build
make run # or ./api run

 

Tests

Running tests in docker env

docker compose up -d
make shell
make test

 

Configure service for other envs see --help option

./api run --help

You can use args (1st column name) or environment (2nd column name) to update these running parameters. Docs

 

Fixtures

Injected postgres fixtures to the postgres docker container in the ./db folder which are loaded on the docker compose up first run (or volume clear)

 

Misc

Reload containers and database

docker compose down -v && docker compose up -V -d

 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published