Skip to content

installation

Gudjon edited this page Jun 20, 2017 · 2 revisions

Run the mongodb server

Windows

Do not have spaces in the installation folder for example do NOT install to "C:\Program Files\MongoDB", better would be "C:\MongoDB"

C:\MongoDB\Server\3.2\bin\mongod.exe

Linux

mongod

Windows 7 problem when installing mongoDB

If you are having problem installing mongoDB on windows 7, then you could try the following.

  1. Do not have spaces in the installation folder for example do NOT install to "C:\Program Files\MongoDB", better would be "C:\MongoDB"
  2. Try to run Run : "C:\MongoDB\Server\3.2\bin\mongod.exe"
  3. If you get a hotfix error when running Mongo, install this Hotifx and goto step 2.
  4. if you are still having problems then this worked for me. Open the command window (cmd) and do the following.
C:
cd C:\MongoDB\Server\3.2
mkdir data
mkdir data\db
mkdir log
cd bin
mongod.exe --directoryperdb --dbpath C:\MongoDB\Server\3.2\data\db --logpath C:\MongoDB\Server\3.2\log\mongodb.log --logappend

Installing VoffCon node server on Ubuntu 16.04 (Linux) when all prerequisites are missing

Assuming that you do not have Mongodb, nodejs or npm installed. This would be the process you would follow.

Reload local package database
sudo apt-get update
Install the MongoDB packages.
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get install -y mongodb-org
# Create dir to store data and run mongodb
sudo mkdir /data
sudo mkdir /data/db
sudo mongod
Install nodejs
sudo apt-get install -y nodejs
sudo apt install npm

Install packages which the VoffCon app server uses and running the server

npm install
node app

Setting up the node server

npm install

Runing the node server

node app

And the go to a modern web browser and visit the url http://localhost:6100

developing the app (Node server)

I use the Visual Studio Code editor for debugging and developing.

But you can use grunt if you want, and to use grunt you just type grunt.

grunt