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.
You can follow this tutorial and understand how this project work on this medium link.
npm install
npm start
Create a new user.
{
"name": "John Doe",
"email": "[email protected]",
"password": "password123"
}
{
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}
Get a list of all users.
[
{
"id": 1,
"name": "John Doe",
"email": "[email protected]"
},
{
"id": 2,
"name": "Jane Smith",
"email": "[email protected]"
}
]
Get one user by id.
{
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}