- We'll build this Waypoint on Cloud 9, a powerful online code editor with a full Ubuntu Linux workspace, all running in the cloud.
- If you don't already have Cloud 9 account, create one now at http://c9.io.
- Click on the "+" icon at the top right of the c9.io page to create a new workspace.
- Give your workspace a name and an optional description.
- Choose Node.js in the selection area below the name field.
- Click the "Create workspace" button.
- Once C9 builds and loads your workspace, you should see a terminal window in the lower right hand corner. In this window use the following commands. You don't need to know what these mean at this point.
learnyoumongo with this command:
npm install learnyoumongo -g
- Install MongoDB with this command:
sudo apt-get install mongodb-org
- Now start the tutorial by running
- Whenever you run a command that includes
mongod on c9.io, use
./mongod instead. Together with the commands used in Step 11, this adds additional parameters to the
mongod command to allow MongoDB to run in the C9 environment.
- Note that you can resize the c9.io's windows by dragging their borders.
- Make sure that you are always in your project's "workspace" directory. You can always navigate back to this directory by running this command:
- Complete "Connect"
Note: Use the command
mongod --port 27017 in place of
mongod --port 27017 --dbpath=./data to avoid a duplicate parameter error.
--dbpath=./data is already included in the
- Once you've completed these steps, move on to our next challenge.