A mapping exercise.
To get the starter map working:
- Create a folder where you want to run the app from.
- Then, from a new Terminal window, type
cd path/to/your/folder. - Then enter
git clone git@github.com:tbushman/mepn.git . - Then enter
npm install - Then create a file named
.envwith one line:GOOGLE_KEY=your_google_maps_api_keyin the project root. - In a second Terminal window, type
cd path/to/your/folder - From this second Terminal window, type
mongod --dbpath mepndb/db - If you see the message, 'waiting for connections on port 27017', proceed. If not, you may have other MongoDB processes running.
- In a third Terminal window, type
cd path/to/your/folder - From this third Terminal window, type
mongo - If all goes well, you can go back to the first Terminal window and enter
npm start, open a browser window and go to url 'localhost:2222'