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://dsz91cxz97a03.cloudfront.net/D3idav5d87-1200x1200.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
make
ormake install && make run
in 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 install
in the root of this application. - Run
component install
in the root of this application. (Or./node_module/component/bin/component install
) - Run
make run
orNODE_PATH=. node app.js
.
In order to install a development instance of this applications, you need to:
cp config.sample.json config.dev.json
into this very directory- Set
NODE_ENV
environment 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.json
into this very directory.- Set
NODE_ENV
environment 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.json
into this very directory.- Set
NODE_ENV
environment 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
- PDR Site: The
Network Party
official site. - PDR Wiki: The
Network Party
official wiki. - PDR Facebook: The
Network Party
official Facebook page. - PDR Twitter: The
Network Party
official Twitter account.
MIT