Skip to content

dyoshyy/CurlARC-Service

Repository files navigation

CurlARC-Service

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

Set up

The following command launches api server & db server.

$ docker compose up

Development Usage

Check the database

$ docker exec -it $(container_id) bash
$ psql -U app -d app
$ \dt
$ SELECT * FROM ${table_name};

How to proxy the flyio database

$ flyctl proxy 5432 -a ${app_name}

Apply migration file

move to the ./migrations directory and run the following command.

$ make migrate-up

Generate mocks

Generate repository and usecase mocks.

$ make mockgen

Run tests

$ make test

Releases

No releases published

Packages

No packages published