Norik

This is the backend part for getting to know NestJS during Norik internship.

Description

Use this boilerplate with Authentication & User module to work on assigned tasks during internship.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Migrations

# 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

Seeds

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

Develop

Here are some guidlines for developers.

New module

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

Authors