Giter Club home page Giter Club logo

express-microblog's Introduction

Express Microblog - Weekend Lab

Objective: Use Node, Express, and MongoDB to build a full-stack microblog application.

Minimum Requirements

  • A server with RESTful API routes for blog posts. Your API should have the following five routes:
    • GET /api/posts to READ all blog posts
    • POST /api/posts to CREATE a new blog post
    • GET /api/posts/:id to READ one blog post
    • PUT /api/posts/:id to UPDATE one blog post
    • DELETE /api/posts/:id to 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 title and description.
  • A client that uses AJAX and Handlebars templating to CREATE, READ, UPDATE, and DELETE blog 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!)

Bonus

  • 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.

Getting Started

  1. Fork this repo, and clone it into your develop folder on your local machine.
  2. npm init to get started. You'll need to install the following node modules:
  • express
  • body-parser
  • hbs
  • mongoose
  • mocha
  • chai
  • request
  1. 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.

Submission

  • 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.

express-microblog's People

Contributors

cameronjacoby avatar

Watchers

Zoë Foss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.