Real-Time Optimization System for dynamic lodging solutions. Built for efficiency and scalability.
$ npm install -g @nestjs/cli$ npm install$ npm install @nestjs/config$ npm install bcrypt$ npm install @nestjs/jwtYou can generate 32, 64, 128 and 256 characters secret key.
$ openssl rand -base64 32OR
node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"OR For 32 Characters
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"OR In Python
import secrets
print(secrets.token_urlsafe(32))
$ npm install dotenv$ npm install helmet$ npm install @nestjs/swagger swagger-ui-express$ npm install class-validator class-transformer$ npm install @prisma/client
$ npm install prisma --save-dev$ npx prisma initWhenever you add new table and to reflect table changes in your code, use the command below
$ npx prisma generate# 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:covWhen you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.
If you are looking for a cloud-based platform to deploy your NestJS application, check out Mau, our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
$ npm install -g mau
$ mau deployWith Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.