Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save micahwierenga/99d410d1ea02ae4d25de5b8df010f5be to your computer and use it in GitHub Desktop.
Save micahwierenga/99d410d1ea02ae4d25de5b8df010f5be to your computer and use it in GitHub Desktop.

Mongoose Flights Lab, Part 1: Supplement

These clarifications and wireframes are meant to be a supplement to Mongoose Flights Lab, Part 1.

The Flight Schema

First, you're to create a Flight schema with the following fields/properties:

  • airline
  • airport
  • flightNo
  • departs

User Stories

AAU, I want to view a list of all flights (index view) that displays each flight's airline, airport, flight no., and departure date/time.

Using all the information from each flight, list them on the flights/index.ejs page like this:

Mongoose Flights Lab flights/index.ejs


AAU, I want to create flights by entering the information on a page (new view) that has a form and submitting it.

The form that you're creating should only include the fields you defined in the schema like this:

Mongoose Flights Lab flights/new.ejs


AAU, I want to be able to access each view via a navigation bar at the top of the page with links to:

  • ALL FLIGHTS
  • ADD FLIGHT

Refer to the wireframes above. The styling in these wireframes was taken from the Mongoose Movies lessons, so the feel free to style your app as you please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment