INSTRUCTIONS TO RUN THE LOCALLY DOWNLOADED FOLDER FROM THE DIRECTORY:
To locally run the page on localhost:3030: Run command "nodemon index.js" from the parent folder- Campgrounds
Whenever you run a js file that has mongo related code, make sure your mongo cli is running in the background. You can find the mongo cli here: "C:\Program Files\MongoDB\Server\5.0\bin\mongo.exe"
EXTRAS:
-
Running "node seeds/indexSeeds.js" reseeds the database
-
"models/explainer.js" and "models/schemeDesignGuide.txt" are examples and explainations for basic one to few, many and bajillions mongo db relationships.
-
"models/campgrounds.js" explains how to delete amenities linked with the campground
-
Routes "explainer.js" explains basic cookie parser (with sign), express session and flash