Skip to content

ArtemVoronov/indefinite-studies-api

Repository files navigation

How to build and run

  1. Set environment vars in the config .env e.g.:
#common settings
APP_PORT=3000
CORS='*'

#required for db service inside app
DATABASE_HOST=postgres
DATABASE_PORT=5432
DATABASE_USER=indefinite_studies_api_user
DATABASE_PASSWORD=password
DATABASE_NAME=indefinite_studies_api_db
DATABASE_SSL_MODE=disable
DATABASE_QUERY_TIMEOUT_IN_SECONDS=30

#required for liquibase
DATABASE_URL=jdbc:postgresql://postgres:5432/indefinite_studies_api_db

#jwt auth:
JWT_SIGN=secretsign
JWT_ACCESS_DURATION_IN_SECONDS=1800 # 30 min
JWT_REFRESH_DURATION_IN_SECONDS=2592000 # 30 days
JWT_ISSUER=principalname
  1. Check docker-compose.yml is appropriate to config that you are going to use (e.g.docker-compose config)
  2. Build images: docker-compose build
  3. Run it: docker-compose up
  4. Stop it: docker-compose down

P.S. It uses the services from https://github.com/ArtemVoronov/indefinite-studies-environment

About

REST API for the application related to education and entertainment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published