This page could be visited at: https://floydyelpcamp.herokuapp.com/
- add landing page
- add campgrounds page that lists all campgrounds:
- name
- image
- create header and footer partials
- add in bootstrap
- Setup new campground POST route
- Add in body-parser
- Setup route to show form
- Add basic un-styled form
- Add a better header/title
- Make campgrounds display in a grid
- Add a navbar to all templates
- Style the campground form
- Install and configure mongoose
- Setup campground model
- Use campground model inside of our routes
- Review the RESTful route
- Add descriptions to our campground model
- Show db.<collection>.drop(): delete everything in the <collection>
- Add a show route/template
| name | url | verb | description |
|---|---|---|---|
| INDEX | /dogs | GET | display a list of all dogs |
| NEW | /dogs/new | GET | display form to make a new dog |
| CREATE | /dogs | POST | add new dog to db |
| SHOW | /dogs/:id | GET | show info about one dog |
| EDIT | /dogs/:id/edit | GET | show edit form for one dog |
| UPDATE | /dogs/:id | PUT | update a particular dog, then redirect somewhere |
| DESTROY | /dogs/:id | DELETE | delete a particular dog, then redirect somewhere |
- Create a models directory
- Use module.exports
- Require everything correctly
- Add a seeds.js file
- Run the seeds file every time the server starts
- Display comments on campground show page
- Discuss nested routes
- Add the comment new and create routes
- Add the new comment form
INDEX /campgrounds NEW /campgrounds/new CREATE /campgrounds SHOW /campgrounds/:id
NEW /campgrounds/:id/comments/new GET CREATE /campgrounds/:id/comments POST
- Add sidebar to show page
- Display comments nicely
- Install all packages needed for auth
- Define User model
- Configure Passport
- Add register routes
- Add register template
- Add login routes
- Add login template
- Add logout route
- Prevent user from adding a comment if not signed in
- Add links to navbar
- Show/hide auth links correctly
- Use express router to reorganize all routes
- Associate users and comments
- Save author's name to a comment automatically
- Prevent an unauthenticated user from creating a campground
- save username and id to newly created campground
- Adding method-override
- Add edit route for campgrounds
- Add link to edit page
- Add update route
- Add destroy route
- Add delete button
- User can only edit his/her campgrounds
- User can only delete his/her campgrounds
- Hide/Show edit and delete buttons
- authentication: find if someone is who he says he is
- authorization: permissions/what can a person do after you know who he is
- Add edit route for comments
- Add edit button
- Add update route
- Add destroy route
- Add delete route
- User can only edit his/her comments
- User can only delete his/her comments
- Hide/Show edit and delete buttons
- Refactor middleware
- Demo working version
- Install and configure connect-flash
- Add bootstrap alerts to header