Skip to content

YelpCamp is a website where users can create and review campgrounds. In order to review or create a campground, you must have an account. This project was part of Colt Steele's web dev course on udemy. This project was created using Node. js, Express, MongoDB, and Bootstrap.

Notifications You must be signed in to change notification settings

3ein39/YelpCamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App Screenshot

YelpCamp

A Node.js web application project from the Udemy course - The Web Developer Bootcamp by Colt Steele. It is a web application designed to add, rate and review different campgrounds, different users(read campers) can put in their comments and concerns, so that it is a well informed and well prepared camping trip for other users.

Features

  • Authentication:

    • User login with username and password
  • Authorization

    • One cannot manage posts and view user profile without being authenticated
    • One cannot edit or delete posts and comments created by other users
  • Manage campground posts with basic functionalities:

    • Create, edit and delete posts and comments

    • Upload campground photos

    • Display campground location on MapBox

    • Search existing campgrounds

  • Manage user account with basic functionalities

    • Flash messages responding to users' interaction with the app

    • Responsive web design

    • Update campground photos when editing campgrounds

API Reference

list all campgrounds

  GET /campgrounds

Create a campground

  POST /campgrounds/new

Edit a campground

  get /campgrounds/:id/edit
Parameter Type Description
id string Required. Id of campground to edit

must be logged in and author to edit

Delete a campground

 Delete /campgrounds/:id
Parameter Type Description
id string Required. Id of campground to delete

must be logged in and author to delete

Add a review to specific campground

 POST /campgrounds/:id/reviews
Parameter Type Description
id string Required. Id of campground

must be logged in to review

Delete a review from specific campground

 Delete /campgrounds/:id/reviews/:reviewId
Parameter Type Description
id string Required. Id of campground
reviewId string Required. Id of review to delete
must be logged in & review owner to delete it

Demo

https://pacific-headland-69253.herokuapp.com/

You can explore the YelpCamp web application and its features using the following demonstration user accounts. These are fake users for demonstration:

  • Username: user1

    • Password: user1
  • Username: chicken

    • Password: chicken

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

CLOUDINARY_CLOUD_NAME CLOUDINARY_KEY CLOUDINARY_SECRET

DB_URL MAPBOX_TOKEN

Acknowledgements

About

YelpCamp is a website where users can create and review campgrounds. In order to review or create a campground, you must have an account. This project was part of Colt Steele's web dev course on udemy. This project was created using Node. js, Express, MongoDB, and Bootstrap.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published