- cd /path/to/your/project
- mkdir data
- mongod --dbpath /path/to/your/project
- A bunch of text should appear, you will see "I NETWORK [initandlisten]" alot;
- type "mongo" and press enter
- MongoDB shell version: your-mongo-version connecting to: test should be appear in your console. If not, repeat from step 1
- Still in mongo console, type "use your-db-name"
- You should see "switched to db your-db-name"
- Now you can put 'mongodb://localhost/node_api' in your connection settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var script = document.createElement('script');script.src = "https://code.jquery.com/jquery-3.1.0.min.js";document.getElementsByTagName('head')[0].appendChild(script); |
NewerOlder