DemocracyOS is an online space for deliberation and voting on political proposals. The software aims to stimulate better arguments and come to better rulings.
![][1] [1]: https://i.cloudup.com/u7kxt1wOtL.png
- MongoDB
- NodeJS & NPM
- Component
npm install -g component
- Fork and/or clone or even just download this repository.
- Set your configuration keys for twitter and facebook on
./config(Check out documentation below). - Run
makeormake install && make runin the root of this application.
- Fork and/or clone or even just download this repository.
- Set your configuration keys for twitter and facebook on
./config(Check out documentation below). - Run
npm installin the root of this application. - Run
component installin the root of this application. (Or./node_modules/component/bin/component install) - Run
make runorNODE_PATH=. node app.js.
In order to install a development instance of this applications, you need to:
cp config.sample.json config.dev.jsoninto this very directory- Set
NODE_ENVenvironment variable todevelopment - Then set the following configuration variables:
You'll need a Facebook application in order to log in with a Facebook user; add your private values to /config/config.dev.json.
If you don't already have a Facebook application, you can create one free by going to http://developers.facebook.com and following these easy steps.
Keep in mind that using separate Facebook applications for different environments (development, testing, production) is usually recommended.
In order to install a testing instance of this applications, you need to:
cp config.sample.json config.testing.jsoninto this very directory.- Set
NODE_ENVenvironment variable totesting - Then set the following configuration variables:
In order to install a production instance of this applications, you need to:
cp config.sample.json config.jsoninto this very directory.- Set
NODE_ENVenvironment variable toproduction - Then set the following configuration variables:
In order to install this application you shoud set the following config services:
- MONGOHQ_URL: MongoDB add-on database url
- FB_CLIENT_ID: Facebook application
ClientId. - FB_CLIENT_SECRET: Facebok application
ClientSecret. - FB_CALLBACK: Facebook application callback url. Eg:
http://yourdomain.org/auth/facebook/callback
- TW_CONSUMER_KEY: Twitter application
ConsumerKey. - TW_CONSUMER_SECRET: Twitter application
ConsumerSecret. - TW_CALLBACK: Twitter application callback url. Eg:
http://yourdomain.org/auth/twitter/callback
- MANDRILL_MAILER_KEY: Mandrill's API key. Eg:
klomFRs7MWASlosCa2q6Y - MANDRILL_MAILER_FROM_NAME: Name of the "from" of emails. Eg:
DemocracyOS - MANDRILL_MAILER_FROM_EMAIL: Email of the "from" of emails. Eg:
info@democraciaenred.org
- PDR Site: The
Net Partyofficial site. - PDR Wiki: The
Net Partyofficial wiki. - PDR Facebook: The
Net Partyofficial Facebook page. - PDR Twitter: The
Net Partyofficial Twitter account.
MIT