Skip to content

Repository files navigation

Table of Contents

Description

EasySaaS is a starter repository for building SaaS applications using NestJS, with a focus on identity and security. It can also be used as an identity microservice in enterprise solutions.

Features

  • User authentication and authorization
  • Role-based access control
  • Secure password storage
  • Multi-tenancy support
  • Plans and subscription management

Tools

  • NestJS
  • TypeORM
  • Passport.js
  • JWT
  • bcrypt
  • Jest
  • Swagger
  • PostgreSQL
  • Redis

Project Structure

The project structure is organized as follows:

easy-saas/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ common/
β”‚   β”‚   β”œβ”€β”€ decorators/
β”‚   β”‚   β”œβ”€β”€ enums/
β”‚   β”‚   β”œβ”€β”€ filters/
β”‚   β”‚   β”œβ”€β”€ guards/
β”‚   β”‚   β”œβ”€β”€ interceptors/
β”‚   β”‚   β”œβ”€β”€ pipes/
β”‚   β”‚   └── utils/
|   |
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   └── data-source.ts
|   |
β”‚   β”œβ”€β”€ db/
β”‚   β”‚   └── migrations/
β”‚   β”‚       
β”‚   β”œβ”€β”€ modules/
|   |
β”‚   β”œβ”€β”€ shared/
β”‚   β”‚   β”œβ”€β”€ dtos/
β”‚   β”‚   β”œβ”€β”€ entities/
β”‚   β”‚   └── interfaces/
β”‚   β”‚       
β”‚   β”œβ”€β”€ main.js
β”‚   └── app.module.js
β”œβ”€β”€ .env
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
└── README.md

Setup Instructions

  1. Clone the repository:

    git clone git@github.com:odainasser/easy-saas.git
    cd easy-saas
  2. Install dependencies:

    npm install
  3. Run migrations:

    npm run migration:run
  4. Start the application:

    npm run start

About

NestJS SaaS starter focusing on identity and security βš‘οΈπŸš€β˜οΈ

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages