Skip to content

Instantly share code, notes, and snippets.

@johnfelipe
Forked from isDipesh/demo_centos.md
Last active August 29, 2015 14:14
Show Gist options
  • Save johnfelipe/d3f017e7c2a8da56d350 to your computer and use it in GitHub Desktop.
Save johnfelipe/d3f017e7c2a8da56d350 to your computer and use it in GitHub Desktop.

This is a manual for installing DemocracyOS app in CentOS.

Setting up the Requirements

  1. MongoDB =========== Installing MongoDB and starting its daemon:
yum install mongodb mongodb-server
service mongod start
  1. NodeJS ==========
curl -sL https://rpm.nodesource.com/setup | bash -
yum install -y nodejs
  1. Other tools/utilities =========================
yum install gcc-c++ make git openssl wget

Installing the app

git clone https://github.com/DemocracyOS/app.git # clone DemocracyOS app repo locally
cd app # change directory to cloned project's location
wget https://gist.githubusercontent.com/xtranophilist/288c02b639a7f217fc3a/raw/9af4067e8f1586f13332fc0e5915eea71a3b6b7c/development.json -O config/development.json
export NODE_PATH=. # Set the enviroment variable NODE_PATH with value `.`
make
make run 2>&1 | tee

Configuration

If you get invalid key 'mongousersUrl' error, add the following line to the dictionary in your configuration file config/development.json.

"mongoUsersUrl": "mongodb://localhost/DemocracyOS-dev",

To make the app accessible without users having to enter the port number with domain/ip, run it on port 80.
Edit privatePort and publicPort on config dictionary to:

"privatePort": 80,
"publicPort": 80,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment