Skip to content

Instantly share code, notes, and snippets.

@xtranophilist
Last active December 30, 2015 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xtranophilist/9f8477a6ef53affc0125 to your computer and use it in GitHub Desktop.
Save xtranophilist/9f8477a6ef53affc0125 to your computer and use it in GitHub Desktop.
DemocracyOS on Centos

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,
@johnfelipe
Copy link

for network customization system-config-network-tui to configure your values.

Restart networking once you're done. service network restart

@johnfelipe
Copy link

[root@felipeurrego ~]# yum install mongodb mongodb-server
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.edatel.net.co
 * extras: mirror.edatel.net.co
 * updates: mirror.edatel.net.co
No package mongodb available.
No package mongodb-server available.

But i resolve with http://tecadmin.net/install-mongodb-on-centos-rhel-and-fedora/

@johnfelipe
Copy link

How run with 192.168.1.64 (local IP) and 181.129.51.199 (WAN IP) and with domain dos.felipeurrego.com, tnks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment