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.
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.
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.
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
).