git clone [email protected]:open-source-society/ossu-api.git
npm install
brew update && brew install mongodb
Download the binaries
curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.0.6.tgz
Extract the binaries
tar -zxvf mongodb-osx-x86_64-3.0.6.tgz
Copy the extracted files to the target directory
mkdir /opt/mondodb
cp -R -n mongodb-osx-x86_64-3.0.<6 class="tgz"></6>
Add MongoDB to the PATH variable
export PATH=/opt/mongodb/bin:$PATH
Note: To permanently update PATH add the install directory to ~/.bashrc.
###4. Create the data folder
mkdir data
###5. Startup up MongoDB
mongod --dbpath ./data
node connected.js
node collection.js --create [name]
node collection.js --destroy [name]
- MongoDB