Small Democracy can be viewed online at smalldemocracy.com.
Small Democracy currently supports:
- Ranked Choice Voting (Borda Count).
- Choose One.
-
Create two local postgres databases:
createdb smalldemocracy_test createdb smalldemocracy_dev
-
Install bundler:
gem install bundler
-
From the root directory of your copy of
smalldemocracy:bundle install bundle exec rake db:migrateThis will install all necessary dependencies and migrate the schema for the
smalldemocracy_devdatabase.smalldemocracy_testwill be automatically set up and torn down during each test run.
-
From the root directory of your copy of
smalldemocracy:bundle exec rake runYou will now be able to load
smalldemocracyat http://localhost:8989
Note: You will need Chrome installed, since the UI tests use the Chrome DevTools Protocol.
-
To run all tests except the slow UI tests:
bundle exec rake fast -
To run the slow UI tests:
bundle exec rake capybara -
To run the slow UI tests and create new goldens on failures (necessary if you've intentionally modified the UI):
bundle exec rake goldens
To see everything you can do:
bundle exec rake --tasksThis work is licensed under the Fair Source License as Fair Source 10.