A Yelp clone web application for camping enthusiasts.
Disclaimer: This project is developed in collaboration from The Web Developer Bootcamp Udemy course.
- Node.js is installed.
- A local installation of MongoDB or cloud service like mLab and get the database URL.
- After having the requirements, check if node and npm commands are running in any working terminal like Bash or PowerShell.
- Create a
.env
file in the root of project directory with the contents as follow below:
PORT=3000
IP=127.0.0.1
DATABASEURL=yourDatabaseURL
You can change the values of the other variables as you wish but insure that it will reflect with the setup in later steps.
- Run
npm install
to download all dependencies from package.json. - For those using MongoDB cloud service, refer to step 2 above OR set the URL in environment variables with this command: 'export DATABASEURL = yourDatabaseURL'. If local setup, database URL will default to
mongodb://localhost/yelp_camp
if DATABASEURL variable is not provided. - Run
npm start
. - Visit the app in a browser with URL of
localhost:3000
(3000 is the set port so update this if there is change in the PORT value. Also check IP if there were conflicts encountered).