Skip to content

A simple Nest.js application with Sequelize, GraphQL, Microservice using NATS and Multi-Tenant. Postgres database.

Notifications You must be signed in to change notification settings

kishore007k/nestjs-sequelize-multi-tenant

Repository files navigation

Nest Logo

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

Description

Nest framework TypeScript starter repository, Sequelize ORM, GraphQL server with Multi-tenant & Microservice (NATS) feature.

In this application we have used separate database for each organizations. The databases will be automatically created when a request is received.

Installation

$ npm install

Running the app

# Start docker
$ docker compose up -d

# watch mode
$ npm run start:dev

Multi-Tenant database

Each request that comes in must have a key x-tenant-id value [your-organization-name] pair. Note that the database that gets created will have the same name as your organization id with the prefix tenant_.

Stay in touch

License

Nest is MIT licensed.

About

A simple Nest.js application with Sequelize, GraphQL, Microservice using NATS and Multi-Tenant. Postgres database.

Topics

Resources

Stars

Watchers

Forks