full-stack app with cluster map, image upload, full authentication and authorization, and other security features
📺 Watch Live here
- Install node (in case you don't have it)
- open the terminal and run
git clone https://github.com/mazenadel19/YelpCamp.git
npm install -g nodemon
(in case you don't have it)- cd YelpCamp
npm i
MAPBOX_TOKEN=*your_map_token_here*
SECRET=*some_gibberish_here*
CLOUDINARY_CLOUD_NAME=*cloud_name_here*
CLOUDINARY_KEY=*API_key_here*
CLOUDINARY_SECRET=*API_secret_here*
you can get a Mapbox token from here and your Cloudinary cloud name, API key and API secret from here
nodemon
- open
localhost:3000
in your browser
- go to register tab and register as a user
- take the
_id
printed in the terminal and paste it instead of the author id in the index file inside the seeds directory - stop the terminal
- cd seeds
- node
index.js
- cd ..
nodemon
- cloudinary
- colors
- connect-flash
- connect-mongo
- dotenv
- ejs
- ejs-mate
- express
- express Mongo sanitize
- express-session
- helmet
- joi
- mapbox
- morgan
- method-override
- mongoose
- multer
- multer-storage-cloudinary
- passport
- passport-local
- passport-local-mongoose
- starability