A place where you can post new camping sites , and even comment on other's post. My Project
- Add Landing Page
- Add Campgrounds Page that lists all campgrounds
Each Campground has:
- Name
- Image
- Create our header and footer partials
- Add in Bootstrap
- Setup new campground POST route
- Add in body-parser
- Setup route to show form
- Add basic unstyled form
- Add a better header/title
- Make campgrounds display in a grid
- Add a navbar to all templates
- Style the new campground form
- Install and configure Mongoose
- Setup campground model
- Use campground model inside of our routes
- Add description to our campground model
- Add a show route/template
- Create a models directory
- Use module.exports
- Require everything correctly!
- Add a seeds.js file
- Run the seeds file every time the server starts
- Make our errors go away!
- Display comments on campground show page
- Discuss nested routes
- Add the comment new and create routes
- Add the new comment form
- Add sidebar to show page
- Display comments nicely
- Add public directory
- Add custom stylesheet
- 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 in navbar
- Use Express router to reoragnize all routes
- Associate users and comments
- Save author's name to a comment automatically
- Prevent an unauthenticated user from creating a campground
- Save username+id to newly created campground
- Add 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
- Add Edit route for comments
- Add Edit button
- Add Update route
- Add Destroy route
- Add Delete button
- User can only edit his/her comments
- User can only delete his/her comments
- Hide/Show edit and delete buttons
- Refactor Middleware
- Install and configure connect-flash
- Add bootstrap alerts to header
- make meaningful messages in flash message
name | url | verb | desc. |
---|---|---|---|
INDEX | /campgrounds | GET | Display a list of all campgrounds |
NEW | /campgrounds/new | GET | Displays form to make a new campground |
CREATE | /campgrounds | POST | Add new campground to DB |
SHOW | /campgrounds/:id | GET | Shows info about one campground |
EDIT | /campgrounds/:id/edit | GET | show edit form for one campground |
UPDATE | /campgrounds/:id | PUT | update a particular campground then redirect somewhere |
DELETE | /campgrounds/:id | DELETE | delete a particular dog then redirect somewhere |
/campgrounds/:id/edit
/campgrounds/:id/comments/:comment_id/edit
- added new landing.css file in public directory
- added the styles of edit campground form.
adding font awesome icons to my project. adding github repository link to my project.
- adding meta tag for theme-color.
- meta name="theme-color" content = "#222" - it is observed in chrome 39 for android mobile only
- add other necessary meta tags author,description and keywords .