To set up this blog
- Install Node.js
- Clone the repository
- Run npm start
Example usage:
- Get posts curl "http://localhost:3000/posts"
- Post data curl -H "Content-Type: application/json" -X POST -d '{"name": "Top 10 ES6 Features", "url":"http://webapplog.com/es6", "text": ""}' "http://localhost:3000/posts"
- Update data curl -H 'Content-Type: application/json' -X PUT -d '{"name": "Top 10 ES6 Features Every Developer Must Know", "url":"http://webapplog.com/es6", "text": ""}' "http://localhost:3000/posts/0"
- Delete data curl -X DELETE "http://localhost:3000/posts/0"