- Add landingpage route
- Add campgrounds page route to list all grounds
- Each campground has name and image
- Create header and footer partials
- Add Bootstrap
- Add campground POST route
- install body-parser
- show forms that can handle add request
- make header/title beautiful
- display campgrounds in grid system
- make navbar that all pages can use
- have the form look some betters
- install and configure mongoose
- set up campground model
- use campground model inside route
- RESTful routes
name | url | verb | desc. |
---|---|---|---|
INDEX | /cats | GET | show all cats |
NEW | /cats/new | GET | display forms to create new cats |
CREATE | /cats | POST | add new cat to DB |
SHOW | /cats/:id | GET | show info about one cat |
- add description to our camps
- make a show route
- make a models directory
- module.exports
- require each model rightly
- add a seeds.js file
- run seeds file every time server starts
- make error go away
- show comments on campground page
- nested routes
name | url | verb | desc. |
---|---|---|---|
INDEX | /campgrounds | GET | show all campgrounds |
NEW | /campgrounds/new | GET | display forms to create new campgrounds |
CREATE | /campgrounds | POST | add new campground to DB |
SHOW | /campgrounds/:id | GET | show info about one campground |
NEW | /campgrounds/:id/comments/new | GET | display forms to create new comments |
CREATE | /campgrounds/:id/comments | POST | add new comments associated with campgrounds to DB |
- add the comments new/create route
- add form to submit comment
- Add a sidebar to showpage
- Display comments nicely
- Install all packages for auth
- define user model
- Configure passport
- add register route
- add register template
- add login route
- add login template
- Add logout route
- Prevent user from adding a comment if not signed in
- add links to navbar
- show/hide login/logout links correctly