A simple blog app, to experiment linked list
.
- Open a terminal and run command
cd ~/Documents
- Clone this repo by running command
git clone [email protected]:Mahesh1356/postLinks.git
- Run command
cd postLinks/
. - Run command
npm install
. Check whether the node has installed in your PC. - Run command
npm start
to start run this app.
- Open a new terminal and run command
json-server --watch db.json
- If previous command throws an error, please do install json server globally using the command
npm i -g json-server
Use this url http://localhost:3001/posts/
to do following operations.
get
http://localhost:3001/posts/ - to get list of posts.get
http://localhost:3001/posts/:id - to get the particular post.post
http://localhost:3001/posts/ - to create a new post, post content will be created automatically.delete
http://localhost:3001/posts/:id - to add delete the post.