This project is a simple CRUD application built with NestJS, Prisma, and PostgreSQL. It provides API endpoints for managing users, including creating, reading, updating, and deleting user records.
- User CRUD operations (Create, Read, Update, Delete)
- Built with NestJS framework.
- Uses Prisma ORM for database management.
- PostgreSQL as the database.
- Input validation using DTOs and class-validator.
- Error handling with custom exceptions.
- NestJS: A progressive Node.js framework for building efficient and scalable server-side applications.
- Prisma ORM: A modern ORM for Node.js and TypeScript.
- PostgreSQL: A powerful, open-source relational database system.
- Node.js (v16 or higher) and npm (v7 or higher) or yarn installed on your machine.
- PostgreSQL (v12 or higher) server running locally.
-
Clone the repository:
git clone https://github.com/himanshu064/prisma-nest-crud.git cd prisma-nest-crud
-
Install dependencies:
npm install # or yarn install
-
Set up environment variables:
DATABASE_URL JWT_KEY
-
Set up the database schema:
npx prisma migrate dev --name init
-
To start the server, run:
nest start