Backend REST API built with Node.js, Express, Prisma ORM, and MySQL, following a clean architecture approach.
- Node.js
- Express.js
- Prisma ORM
- MySQL
- REST API
- Create Product
- Update Product
- Delete Product
- Get Products
- Category relationship (One-to-Many)
- Clean Architecture structure
npm install
npx prisma migrate dev
node src/app.jsAPI Endpoints
Products
GET /products
POST /products
PUT /products/:id
DELETE /products/:id
{
"name": "Laptop",
"price": 1500,
"stock": 10,
"categoryId": 1
}```