- Install dependencies
npm i
. - To start the apps in docker, use
npm run docker:start
. - If you want to run unit tests, open another terminal where
npm run test:auth
. - To check lint, use
npm run lint
.
Don't run migration manually. Database migrations will be applied automatically inside docker when it is being started.
Current main image is 291MB.
- To start containers, run in the terminal the following:
npm run docker:start
ordocker-compose up --build
. - Basic containers shutdown:
npm run docker:stop
. - Shutdown and clean up of volumes:
docker-compose down --volumes
.
All available migrations are already generated and stored.
Keep in mind, migrations are applied automatically on application start-up. See TYPEORM_MIGRATIONS_RUN
setting in .env file.
- To generate migration, start docker containers and execute
docker exec -it rss-service npm run migration:generate
. - To run migrations, execute
docker exec -it rss-service npm run migration:run
.
TS documentation is available in /docs/index.html
.
Logs are available in docker volume logs
and also console
.
To change logging level, go to .env
and replace the value of LOG_LEVEL
.
You can use one of:
- silent (no logs)
- fatal
- error
- warn
- info
- debug
- trace (includes all possible logs)