Giter VIP home page Giter VIP logo

checkpoint-express-mongoose's Introduction

Checkpoint: Express & Mongoose

Before You Start

The test suite files are located in ./test. Before you begin anything, run npm install.

To run the tests in the terminal, run npm test. Every time you make a change and save your files, you will need to manually re-run the tests.

Instructions

For this checkpoint, you need to build a simple message board application. You will have a single model, Messages, with two properties: an Author and a Body.

We've provided a package.json file with the dependencies to run your tests; you will need to install everything else necessary to build your application server with Express and Mongoose.

Your application should have the following features:

  • A home page that:
    • lists the most recently pushlished messages
    • has a link to create a new message
  • A view for creating a new message that:
    • has a form for creating a new message
    • submits that form to your server to save the new message in your MongoDB database
  • A show view for a message that:
    • Shows the message body and author

NOTEs:

  • You will need to add module.exports = app to the bottom of your index.js file for the tests to work.
  • You will need to use app.use(bodyParser.json()) in addition to the way you use bodyParser to process form submissions
  • If your tests don't exit, try hitting ctrl-c.

When you are finished

Commit your work, push to GitHub and make a Pull Request.

checkpoint-express-mongoose's People

Contributors

debutler266 avatar juancgarcia avatar

Watchers

James Cloos 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.