Objective: Use Node, Express, and MongoDB to build a full-stack microblog application.
- A server with RESTful API routes for blog posts. Your API should have the following five routes:
GET /api/poststo READ all blog posts
POST /api/poststo CREATE a new blog post
GET /api/posts/:idto READ one blog post
PUT /api/posts/:idto UPDATE one blog post
DELETE /api/posts/:idto DELETE one blog post
- Request specs for each of your API routes.
- A persistent database to store blog posts. Blog posts should at minimum have a
- A client that uses AJAX and Handlebars templating to
DELETEblog posts. A user should be able to:
- See a list of all blog posts
- Create a new blog post
- Update an existing blog post
- Delete an existing blog post
- A pleasing a logical user experience (take advantage of Bootstrap!)
- Prevent invalid data from being saved into the database, and handle errors in your API routes.
- Build a "likes" functionality that lets users "upvote" blog posts.
- Add a "category" attribute to your blog posts. When a user clicks on a category, take them to a page that displays all the blog posts that have that category.
- Fork this repo, and clone it into your
developfolder on your local machine.
npm initto get started. You'll need to install the following node modules:
- Use Postman to test and debug your API routes. Make sure you are always
console.log-ing data that comes back from your API when you make an AJAX call before you write any other code.
- As you make code changes, frequently commit and push to GitHub.
- Once you've finished the assignment and pushed your work to GitHub, make a pull request from your fork to the original repo.