The Madison Editor is our main document drafting platform for Madison. It allows lawmakers to create new legislation and share it for collaboration with their partners, before publishing it on the main Madison site.
This is a Node + Sails.js application with AngularJS on the frontend, running Etherpad as the main editing tool.
- Clone the repo
- Run
npm install
to get the node packages. - Run
bower install
from theassets
directory to get the bower packages. - Create a new database for the application. Note: Currently, an instance of Madison is necessary, so you'll need an existing Madison database to connect to.
- Set your configuration options in the
config/env
folder, including the database connection indevelopment.js
. - Run
sails lift
to start the application.
You'll also need a running Etherpad instance for the actual editing window.