Skip to content

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.

Notifications You must be signed in to change notification settings

himanshu077/prisma-nest-crud-with-auth

Repository files navigation

User CRUD with NestJS, Prisma, and PostgreSQL

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.

Features

  • 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.

Technologies Used

  • 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.

Prerequisites

  • Node.js (v16 or higher) and npm (v7 or higher) or yarn installed on your machine.
  • PostgreSQL (v12 or higher) server running locally.

Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/himanshu064/prisma-nest-crud.git
    cd prisma-nest-crud
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Set up environment variables:

    DATABASE_URL
    JWT_KEY
  4. Set up the database schema:

    npx prisma migrate dev --name init
  5. To start the server, run:

    nest start

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published