Skip to content

ali-husnain/nestjs-multi-tenant-rest-graphql-api-boilerplate

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

$ npm run graphql:schema `run this after changing the graphql schema`

Install Redis Server
  For Windows
    https://github.com/microsoftarchive/redis/releases/tag/win-3.0.504

  For Linux
    https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04

Running the app

#Create .env File at root with Below Params
TZ="UTC"
PORT=4000
NODE_ENV="development"
MYSQLHOST=localhost
MYSQLPORT=3306
MYSQLDATABASE=database
MYSQLUSERNAME=root
MYSQLPASSWORD=null
SESSION_SECRET=sessionsecret
DOMAIN=localhost
COOKIE_NAME=rd_panel

# 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

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.