-
Notifications
You must be signed in to change notification settings - Fork 616
Ubuntu 14 Install
Note i did this off the top of my head after getting it working, there could be a typo so if something doesn't work then help fix this up
To get started with DemocracyOS, you will need to have installed:
MongoDB open-source document database.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
-
sudo mkdir /data/db
(just in case your mongo install didn't create this folder) -
sudo chown enteryourusername /data/db -R
(change the permissions so you can write to it, your username by default is right there in the terminal before the @ symbol)
NodeJS & NPM platform.
-
sudo apt-get install nodejs npm
(This should be fine as long as you don't have the other node package, if you run into issues install node-legacy ) -
sudo ln -s /usr/bin/nodejs /usr/bin/node
(sets up a symbolic link so make finds node)
Git distributed version control system to get
sudo apt-get install git
- The Lynda GIT tutorials are pretty good if you don't know how this works
Make build automation utility.
sudo apt-get install make
OpenSSL in case you want to generate SSL certificates.
When our system builds it grabs a large number of different dependencies from GitHub, unfortunately GitHub only allows you to grab 60 an hour as an anonymous guest (but 5000 if you are a user).
- If you don't have an account you will need to create one
- Then generate an application token with the same name as your github username. Keep a copy of the string generated or you'll have to repeat this step.
sudo gedit ~/.bashrc
- Add the following to the bottom of the file:
export GITHUB_USERNAME="yourgithubusername"
export GITHUB_PASSWORD="tokenstringgeneratedbygithub"
- Navigate to the directory you want to install to, find the latest released version of DemocracyOS
git clone https://github.com/DemocracyOS/app.git
git checkout _thelatestreleasesname_
-
cp config/sample.json config/development.json
(You may need to edit this development.json file for your server, but it will often build by default) -
sudo service mongod start
(make sure mongodb is ready)
-
make run
(In the root directory of your application) - Navigate to
http://localhost:3000/
on your browser
In order for you to see a fully working deployment, you will need some sample data. This can be achieved by either of these approaches:
- Manually load sample fixtures bundled with DemocracyOS.
- Setup and access the administration module.
Visit our official website - Developed by Democracia en Red and contributors from the world over!