Skip to content

Learn how to seamlessly integrate Prisma with Express for a clean and scalable Node.js backend. Explore efficient data modeling, type-safe operations, and robust database interactions.

Notifications You must be signed in to change notification settings

csalazar94/prisma-express-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrating Prisma with Express in a Clean and Scalable Manner

Learn how to seamlessly integrate Prisma with Express for a clean and scalable Node.js backend. Explore efficient data modeling, type-safe operations, and robust database interactions.

Installation

You can follow this tutorial and understand how this project work on this medium link.

npm install

Usage

npm start

API Endpoints

POST /users

Create a new user.

Request Body

{
  "name": "John Doe",
  "email": "[email protected]",
  "password": "password123"
}

Response Body

{
  "id": 1,
  "name": "John Doe",
  "email": "[email protected]"
}

GET /users

Get a list of all users.

Response Body

[
  {
    "id": 1,
    "name": "John Doe",
    "email": "[email protected]"
  },
  {
    "id": 2,
    "name": "Jane Smith",
    "email": "[email protected]"
  }
]

GET /users/:id

Get one user by id.

Response Body

{
    "id": 1,
    "name": "John Doe",
    "email": "[email protected]"
}

About

Learn how to seamlessly integrate Prisma with Express for a clean and scalable Node.js backend. Explore efficient data modeling, type-safe operations, and robust database interactions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published