Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ladydangerdame/2aff69a4dcf0cb776520623e1706ae33 to your computer and use it in GitHub Desktop.
Save ladydangerdame/2aff69a4dcf0cb776520623e1706ae33 to your computer and use it in GitHub Desktop.

Week 3 Learning Objectives

Express

  • Draw a diagram of the request-response cycle with Node.js and Express included and labeled
  • Describe the roles that Node.js and Express play in building a server
  • Use npm to initialize a Node.js project
  • Write a local web server to serve JSON and static assets with Express

Express Routes & Parameters

  • Create flexible, dynamic routes with parameterized route urls
  • Process data sent to a server through query strings
  • Process data sent from named form fields (as with POST requests)
  • Identify Express routing patterns that can be used for PUT, PATCH, and DELETE requests

MongoDB/Mongoose

  • Explain how MongoDB and Mongoose are related
  • Describe the relationship between schemas and models in Mongoose
  • Create Mongoose model instances
  • Using Mongoose, integrate a MongoDB database with an Express project

Mongoose relationships

  • Describe one-to-one, one-to-many, and many-to-many data relationships
  • Write mongoose schemas that can reference and embed data
  • Reflect model relationships in server routes

Personal API & Heroku

  • Deploy server side code to Heroku to make an API publically accessible
  • Write an API documentation endpoint at the /api path
  • Build an API from scratch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment