Skip to content

christhomson/ourpolitics

 
 

Repository files navigation

Our Politics

Our Politics started in 2015 with a single aim: making election platforms easier to understand.

Elections matter, but understanding headlines and press releases takes a lot of time. Our Politics aims to offer easy-to-read summaries of party platforms.

Development

Run Project

npm install
npm re:start
# in another tab
npm run webpack

After you see the webpack compilation succeed (the npm run webpack step), open up build/index.html (no server needed!). Then modify whichever .res file in src and refresh the page to see the changes.

Run Project with Server

To run with the webpack development server run npm run server and view in the browser at http://localhost:8080. Running in this environment provides hot reloading and support for routing; just edit and save the file and the browser will automatically refresh.

Build for Production

npm run clean
npm run re:build
npm run webpack:production

This will replace the development artifact build/Index.js for an optimized version as well as copy src/index.html into build/. You can then deploy the contents of the build directory (index.html and Index.js).

About

Code that powers Our Politics, a guide for Canadian election platforms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ReScript 75.9%
  • SCSS 17.3%
  • HTML 4.1%
  • JavaScript 2.7%