Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 655 Bytes

README.md

File metadata and controls

45 lines (36 loc) · 655 Bytes

Node.js REST API with Prisma and MySQL

Backend REST API built with Node.js, Express, Prisma ORM, and MySQL, following a clean architecture approach.

Tech Stack

  • Node.js
  • Express.js
  • Prisma ORM
  • MySQL
  • REST API

Features

  • Create Product
  • Update Product
  • Delete Product
  • Get Products
  • Category relationship (One-to-Many)
  • Clean Architecture structure

Installation

npm install
npx prisma migrate dev
node src/app.js

API Endpoints

Products
GET /products
POST /products
PUT /products/:id
DELETE /products/:id
{
  "name": "Laptop",
  "price": 1500,
  "stock": 10,
  "categoryId": 1
}```