Setup a Fake Rest-API in 5 steps

I am a Full Stack Developer from Mumbai, India. Currently I'm pursuing my Bachelors in Computer Science.
Step 1 :
Initialize your npm project with npm init -y
command

Step 2 :
Install the "json-server" package using npm i json-server

Step 3 :
Create a file with .json extension and write your data in JSON format

Step 4 :
Enter the package.json folder and write "script: "json-server --watch database.json"

Step 5 :
Run the npm run json command in the terminal

aaannndd...
Click on http://localhost:3000/People
Hope I helped ๐ Bye ๐




