We have created a demo aap of Nest that demonstrates the CURD of user and movies and all associate entities and we have integrated the following technology in our app.
- Movie CRUD
- User Authentication
- User profile
- Social logins
- Author,Actor, geners and ProductionHouse CURDS
- rating and review of movies
we tried to implement the best practice of code structure in our project following are the example
- src/core/databse/*ts
- src/middlewares/*.ts
- src/modules/* /*.module.ts
- src/modules/* /*.service.ts
- src/modules/* /*.controllers.ts
- src/modules/* /*.provider.ts
- documentation/*
- dist/*
The environment variables can be found and modified in the .env
file. They come with these default values:
env | DummyData |
---|---|
DB_HOST | dbhost |
DB_PORT | PORT |
DB_USER | USER |
DB_PASS | PASS |
DB_DIALECT | postgres |
DB_NAME_TEST | dbName |
DB_NAME_DEVELOPMENT | dbName |
DB_NAME_PRODUCTION | dbName |
JWTKEY | JWTSecret |
TOKEN_EXPIRATION | Time |
BEARER | Bearer |
GOOGLE_SECRET | GOOGLE_SECRET |
CLIENT_ID | CLIENT_ID |
APP_ID | APP_ID |
APP_SECRET | APP_SECRET |
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod