(ignoring image and SEO files)
|-- README.md
|-- app.js
|-- globalConfig.json
|-- index.test.js
|-- jest-mongodb-config.js
|-- jest.config.js
|-- middleware
| `-- index.js
|-- models
| |-- campground.js
| |-- comment.js
| |-- review.js
| `-- user.js
|-- package-lock.json
|-- package.json
|-- public
| `-- stylesheets
| |-- analytics.js
| |-- main.css
|-- routes
| |-- campgrounds.js
| |-- comments.js
| |-- index.js
| `-- reviews.js
`-- views
|-- campgrounds
| |-- edit.ejs
| |-- index.ejs
| |-- new.ejs
| `-- show.ejs
|-- comments
| |-- edit.ejs
| `-- new.ejs
|-- landing.ejs
|-- login.ejs
|-- partials
| |-- footer.ejs
| `-- header.ejs
|-- register.ejs
|-- reviews
| |-- edit.ejs
| |-- index.ejs
| `-- new.ejs
`-- users
`-- show.ejs
Create an .env file and add values to the following variables:
GEOCODER_API_KEY=
API_KEY=
DATABASEURL=
PASSPORT_SECRET=
ADMIN_CODE=
Make sure you have MongoDB installed on your system In a terminal window, initialize a MongoDB Database
$ ./mongod
In a second terminal window, access the MongoDB Database with Mongoose
$ mongoose
In a third terminal window, install dependencies using npm:
$ npm install
And then run the application with
$ npm start
or for hot reloading (recommended)
$ nodemon app.js
To run the tests:
$ npm test
- The skeleton of this project was based on Colt Steele's YelpCamp during the Web Development Bootcamp.
Copyright Notice and Statement: currently not offering any license. Permission only to view and download.