https://github.com/tanmayvaij/shaasium-auth
A scalable and secure authentication microservice built with NestJS, Prisma ORM, and [TypeScript], designed for multi-tenant or modular BaaS platforms. Part of the Shaasium backend suite.
https://github.com/tanmayvaij/shaasium-auth
authentication docker-image javascript microservice modularization module nest nestjs nestjs-backend node node-js nodejs
Last synced: about 2 months ago
JSON representation
A scalable and secure authentication microservice built with NestJS, Prisma ORM, and [TypeScript], designed for multi-tenant or modular BaaS platforms. Part of the Shaasium backend suite.
- Host: GitHub
- URL: https://github.com/tanmayvaij/shaasium-auth
- Owner: tanmayvaij
- Created: 2025-05-20T17:15:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-30T06:40:56.000Z (about 1 year ago)
- Last Synced: 2025-10-19T16:44:10.062Z (8 months ago)
- Topics: authentication, docker-image, javascript, microservice, modularization, module, nest, nestjs, nestjs-backend, node, node-js, nodejs
- Language: TypeScript
- Homepage:
- Size: 8.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shaasium Auth Service
A scalable and secure authentication microservice built with [NestJS](https://nestjs.com/), [Prisma ORM](https://www.prisma.io/), and [TypeScript], designed for multi-tenant or modular BaaS platforms. Part of the **Shaasium** backend suite.
## 🚀 Features
- 🧑💻 User registration & login
- 🔐 Password hashing with `bcrypt`
- 🔑 JWT-based authentication
- 🌐 RESTful API design
- 🗃️ Supports PostgreSQL
- 📦 Prisma ORM for type-safe database access
- ✅ Input validation with `class-validator`
- 📁 Modular code structure using NestJS best practices
---
## 📦 Tech Stack
- **Framework**: [NestJS](https://nestjs.com/)
- **Language**: TypeScript
- **ORM**: [Prisma](https://www.prisma.io/)
- **Database**: PostgreSQL
- **Security**: JWT, bcrypt
- **Validation**: class-validator, class-transformer
---
## 🛠️ Getting Started
### 1. Clone the Repository
```bash
git clone https://github.com/tanmayvaij/shaasium-auth.git
cd shaasium-auth
````
### 2. Install Dependencies
```bash
npm install
```
### 3. Configure Environment Variables
Create a `.env` file based on the `.env.example` file.
```env
DATABASE_URL=your_database_url
JWT_SECRET=your_jwt_secret
PORT=3000
```
### 4. Set Up the Database
Run Prisma migrations (SQL only):
```bash
npx prisma migrate deploy
```
### 5. build the Server
```bash
npm run build
```
---
### 6. Run the Server
```bash
npm run start
```
---
## 📑 API Endpoints
| Method | Endpoint | Description |
| ------ | --------------- | -------------------------------- |
| POST | `/auth/signup` | Register a new user |
| POST | `/auth/signin` | Login with credentials |
| GET | `/auth/verify` | Check auth token |
---
## 📘 API Documentation (Swagger)
Interactive API docs available at: /api
Automatically generated via `@nestjs/swagger`. Use it to explore endpoints, test requests, and view schemas.
---