This is the backend part for getting to know NestJS during Norik internship.
Use this boilerplate with Authentication & User module to work on assigned tasks during internship.
$ npm install
Before running the app, docker-compose up command should executed to set up database & all other services (redis).
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# generate new migration
$ npm run typeorm migration:generate -- -n <migration_name>
# show migrations
$ npm run typeorm migration:show
# run migrations
$ npm run typeorm migration:run
# revert latest executed migration
$ npm run typeorm migration:revert
Currently docker-compose try to mount all the files from /seed/files into bucket named seed. When seeds are run images from this bucket are downloaded and uploaded via MediaService to desired bucket (original + compressed). SO make sure you have all of the images inside the folder. This folder is ignored by .gitignore and by .dockerignore. To run seeds simply run
# run seeds
$ npm run seed
Here are some guidlines for developers.
When you want to add new module with controller and service, always do it by using NestJS internal commands.
# Create new module
$ nest g module NewModule
# Create new controller
$ nest g controller NewModule
# Create new service
$ nest g service NewModule
Feature branches are used to develop new features for the upcoming future release. When starting development of a feature the branch is always created from the develop branch. The essence of a feature branch is that it exists as long as the feature is in development and is merged back into develop branch when the feature is completed. Example of naming: feature/email-login