Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 962 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 962 Bytes

webapp

Prerequisites for building and deploying your application locally.

Install Visual Studio, Node.js, npm , Postman and Git bash

Build and Deploy instructions for web application.

Step 1: Clone git repository and run 'npm init' to intialize the repository.
Step 2: Run 'npm install' to install all the dependencies specified in package.json
Step 3: Before starting the node server, start Mysql services.
Step 4: Run 'node server.js to start the server'
Step 5: Start Postman and hit the enpoints:

Assignment 1 Endpoints:

POST localhost:3000/api/users
GET localhost:3000/api/users/userAcc
PUT localhost:3000/api/users/updateAccount

Assignment 2 endpoints

POST localhost:3000/api/books
GET localhost:3000/api/books/:id
GET localhost:3000/api/books
DELETE localhost:3000/api/books/:id

Assignment 4 endpoints

POST localhost:3000/api/books/:id/images
DELETE localhost:3000/api/books/:bookId/images/:imageId

update