This is a functional NodeJS full-stack web app built along Colt Steele's web development course.
Built on a MongoDB/Express/Node stack along with Bootstrap CSS framework for stylization. Features MVC RESTful architecture.
- Browse through lots of campgrounds and find them by location
- Users can create, edit, and remove campgrounds
- Users can post, edit and delete reviews
- Node.js - Node.jsยฎ is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- Express - Fast, unopinionated, minimalist web framework for Node.js
- MongoDB - The database for modern applications
- Mongoose - Elegant MongoDB object modeling for Node.js
- EJS - Embedded JavaScript templating
- Bootstrap - Powerful, extensible, and feature-packed frontend toolkit.
- Install mongodb
- Create a cloudinary account to get an API key and secret code
- Register to Mapbox to get your free token.
- You can optionally choose to store data remotely by registering to MongoDB Atlas. In this case, you won't need to install Mongo locally.
git clone https://github.com/RuanUrb/YelpCampgrounds.git
cd YelpCampgrounds
npm install
Create a .env file in the project root directory and add the following variables:
CLOUD_URL='<url>'
CLOUDINARY_API_KEY='<key>'
CLOUDINARY_API_SECRET='<secret>'
CLOUDINARY_API_KEY='<secret>'
MAPBOX_TOKEN='<token>'
SESSION_SECRET='<secret>'
You should have mongod
running in a separate terminal, then go node app.js
.
Finally, go to localhost:5500.