Yelp Camp is a web application where users can create and review campgrounds. This project is part of The Web Developer Bootcamp course.
- User authentication with Passport.js
- Authorization for campground ownership
- CRUD operations for campgrounds and reviews
- Responsive design with Bootstrap
- Map integration with Mapbox
- Image upload with Cloudinary
- Node.js
- Express.js
- MongoDB
- Mongoose
- Passport.js
- EJS
- Bootstrap
- Mapbox
- Cloudinary
- Clone the repository:
git clone https://github.com/yourusername/yelp-camp.git
- Navigate to the project directory:
cd yelp-camp
- Install dependencies:
npm install
- Set up environment variables:
- Create a
.env
file in the root directory. - Add the following variables:
DATABASE_URL=<your-mongodb-url> CLOUDINARY_CLOUD_NAME=<your-cloudinary-cloud-name> CLOUDINARY_KEY=<your-cloudinary-key> CLOUDINARY_SECRET=<your-cloudinary-secret> MAPBOX_TOKEN=<your-mapbox-token>
- Create a
- Start the server:
npm start
- Open your browser and navigate to
http://localhost:3000
.
yelp-camp/
├── models/
│ ├── campground.js
│ ├── review.js
│ └── user.js
├── public/
│ ├── stylesheets/
│ └── javascripts/
├── routes/
│ ├── campgrounds.js
│ ├── reviews.js
│ └── users.js
├── views/
│ ├── campgrounds/
│ ├── reviews/
│ ├── partials/
│ └── users/
├── .env
├── app.js
├── package.json
└── README.md
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
- GitHub: missipsag (https://github.com/missipsag)
- Email: [email protected]