This is a service that provides a RESTful API for the CurlARC application.
This repository uses the following technologies:
- Go
- Echo (Web Framework)
- GORM (ORM)
- Atlas (Migration Tool)
- PostgreSQL
The following command launches api server & db server.
$ docker compose up
$ docker exec -it $(container_id) bash
$ psql -U app -d app
$ \dt
$ SELECT * FROM ${table_name};
$ flyctl proxy 5432 -a ${app_name}
move to the ./migrations
directory and run the following command.
$ make migrate-up
Generate repository and usecase mocks.
$ make mockgen
$ make test