The project allows you to add custom posts. The project and database can be run in a docker container. Implemented authorization, user roles, role protectors, error interceptors, swagger documentation, file uploads.
$ npm install
$ yarn install
# development mode
1. Create inside root dir file .development.env
2. Copy content from .development.env.dist to .development.env
3. correct inside the .development.env file the data to the required
# production mode
1. Create inside root dir file .production.env
2. Copy content from .production.env.dist to .production.env
3. correct inside the .production.env file the data to the required
# debug mode
1. Create inside root dir file .debug.env
2. Copy content from .development.env.dist to .debug.env
3. correct inside the .debug.env file the data to the required
# development mode
$ npm run start:dev
$ yarn start:dev
# production mode
$ npm run start:prod
$ yarn start:prod
# debug mode
$ npm run start:debug
$ yarn start:debug
# unit tests
$ npm run test
$ yarn test
# e2e tests
$ npm run test:e2e
$ yarn test:e2e
# test coverage
$ npm run test:cov
$ yarn test:cov
- change in .env file row from
POSTGRES_HOST=localhost
toPOSTGRES_HOST=postgres
- for build docker image run the command
docker-compose build
- for start docker image run the
docker-compose up
- for stop docker image run the
docker-compose down
http://localhost:5001/api/docs