Simple item listing API made with Go and PostgreSQL.
Made to practice the go-chi
library and efficient workflow for deployment using Docker and GitHub Actions.
- Docker
- Docker-compose v1.29+
- Go v1.16+
- Migrate
-
Change
.env.sample
to.env
and update the respective values -
To run from Docker containers
- To build and run from containers:
make build
- To bring down containers:
make down
- To build and run from containers:
-
If you want to run outside containers:
- change
DB_HOST
value tolocalhost
in.env
file - Start your local Postgres or just the database container with
make dbup
- Run the migrates:
make migrateup
- Download modules:
go mod download
- Start server:
go run main.go
- change
- Tests
- CI - Github Actions