This project aims to develop a RESTful API for external consultations and return only expected values.
- Docker
- Golang
- Migrate
Run the docker compose to have a local postgres
docker-compose up -d
Run migrations to have a functional DB
POSTGRESQL_URL=postgres://fr-user:123456@localhost:5432/fr?sslmode=disable make migrate_up
If you have different db please replace credentials above
You need to have valid environments
The project has the file .env.example
you can use it to create the .env with valid environments
Now you just have to run the project
go run main.go
The file insomnia.json are in the project, is just to import and use environment dev.