Skip to content

ga-chicago/wdi-13-hw13-full-MEN-stack-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

GA Logo

MEN Stack Homework

This weekend you are going to create an express app from scratch, whatever model you want.

Read this entire page before you start

There should be at least 15-20 commits.

  1. The app should have one model with at least two properties.
  2. It should have all the CRUD functionality.
  3. It should contain all the same RESTful routes we have in our fruits app.
  4. This app will be very similiar to the fruits app, but the model must be different.
  5. DO NOT COPY AND PASTE ANY CODE FROM YOUR FRUITS APP OR ANYWHERE ELSE. It's okay to use it as a reference, but type it out. DO NOT COPY AND PASTE.
  6. Do one small step at a time, and then make sure that one step works, and commit before moving on.

Remember: Use this list of RESTful routes as your guide for HTTP methods, CRUD functionalities, and URL formatting:

RESTful routes

Hints

  1. Don't forget to npm init in order to start your node project.
  2. If you get an error message that says module not found—did you install the module?
  3. READ YOUR ERROR MESSAGES, first try to solve them by going throught the error message, then look it up, then compare to code that you know works, like the fruits github repo, then ask a friend.
  4. Set up your db first and make sure it's connected.
  5. Do one route at a time, maybe start with your index route, then move onto creating a route
  6. console.log() everything you can think of.
  7. Remember when you are submitting a form, you are making a request from the client, and your server has to respond to that request.
  8. res.render is for rendering templates (ejs), res.send is for sending text. Remember, the res object is how you 'respond' to the client.
  9. Use lesson notes and labs from this week as a guide only if you are completely lost. But make sure you are giving it a true effort and not taking the easy way out. No Pain No Gain!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published