docs(contributing): Add correct commands for installing and running mo (#15686)

Closes #15648
This commit is contained in:
Markus Englund
2017-07-28 20:43:29 +07:00
committed by mrugesh mohapatra
parent 880f092a3f
commit b96c4d39f5

View File

@ -50,6 +50,8 @@ node -v
mongo --version mongo --version
``` ```
To check your MongoDB version on Windows, you have to locate the installation directory. It is probably located at something like `C:\Program Files\MongoDB\Server\3.4\` where 3.4 is your version number.
If your versions are lower than the prerequisite versions, you should update. If your versions are lower than the prerequisite versions, you should update.
Platform-specific guides to setting up a development environment: Platform-specific guides to setting up a development environment:
@ -191,8 +193,13 @@ Now you will need to start MongoDB, and then seed the database, then you can sta
```bash ```bash
# Start the mongo server in a separate terminal # Start the mongo server in a separate terminal
# On OS X:
mongod mongod
# If you are using Windows, you have to instead specify the full path to the mongod binary
# Make sure to replace 3.4 with the version you have installed
"C:\Program Files\MongoDB\Server\3.4\bin\mongod"
# Initialize freeCodeCamp # Initialize freeCodeCamp
# This will seed the database for the first time. # This will seed the database for the first time.
# This command should only be run once. # This command should only be run once.