This project is a CRUD API built using JavaScript, Express, SQL Server, and Prisma ORM. It provides endpoints to create, read, update, and delete data from a SQL Server database.
- node_modules
- prisma
- schema.prisma
- seed.js
- src
- api
- default.js
- userController.js
- lib
- config
- db.js
- routes
- main.js
- server.js
- .env
- .gitignore
- env.sample
- package-lock.json
- package.json
- README.md
- GET /user - Retrieve all users
- GET /user/:id - Get user by id
- POST /user/create - Create a new user
- POST /user/update/:id - Update user by id
- POST /user/delete/:id - Delete user by id
- Node.js
- npm
- SQL Server
.env //Please see env.sample and fill it up for your local values
npm install
npx prisma init
npm run prisma:migrate
npm run prisma:seed
npm run start