git clone https://github.com/rostis232/prmv.git
cd prmv
Rename the file .env.example to .env
mv .env.example .env
Fill in the environment variables (or use default):
PG_PORT=
PG_PASS=
PG_USER=
PG_DB_NAME=
PORT=
Start Docker Compose:
docker-compose up -d
or use Makefile:
make up
This will run docker containers with the application and the PostrgeSQL database.
Usage
The web portal will be available once Docker Compose is up and running.
Migrations
App uses golang-migrate for mirgations handling.
Migrations are applied independently when building containers.
OpenAPI documentation
There is Swagger documentation generated by swaggo/swag and available on the endpoint /swagger/index.html.
Note that it is configured to work with localhost:8080.