A D-CENT project: an application for crowd sourcing and drafting policy.
First, clone the repository.
Navigate to the ops/ directory of the project and run:
vagrant up development
The first time this is run, it will provision and configure a new VM.
When the VM has started, access the virtual machine by running:
The source folder will be located at
After initial setup, navigate to the source directory and apply the migrations:
cd /var/objective8 grunt build lein ragtime migrate
Running the tests
To run all tests, use this command:
Commands and aliases can be found in the project.clj file.
Designing in the browser
This allows you to rapidly design. You can create jade, modify the sass and js. These will all be live reloaded.
Open your browser at http://192.168.50.50:2345/_routes to access it from outside the vagrant box.
Adding or updating a translation resource
Resources for translating the site into different languages are located under:
To start translating into a new locale, or to update translations for
an existing locale, there is a helper leiningen task that copies keys
from the default en.csv template into a new or existing templates for
other locales. This can be run using:
lein translation-template <locale-identifier> [& <locale-identifier>]
lein translation-template es el
will generate or update
Running the app
Add any environment variables you want to use to the
To start the app, run:
Go to localhost:8080 to test in development
And then inside the REPL run this for a fake twitter sign-in:
or this for the normal sign-in options:
To deploy using Docker, see here.
To deploy to an Ubuntu server using Ansible, see here.
To deploy to Heroku, see here.