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 installto get the node packages. - Run
bower installfrom theassetsdirectory 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/envfolder, including the database connection indevelopment.js. - Run
sails liftto start the application.
You'll also need a running Etherpad instance for the actual editing window.