This is a manual for installing DemocracyOS app in CentOS.
- MongoDB =========== Installing MongoDB and starting its daemon:
yum install mongodb mongodb-server
service mongod start
- NodeJS ==========
curl -sL https://rpm.nodesource.com/setup | bash -
yum install -y nodejs
- Other tools/utilities =========================
yum install gcc-c++ make git openssl wget
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
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,
for network customization system-config-network-tui to configure your values.
Restart networking once you're done. service network restart