A small website highlighting local issues to give people reasons to vote in the next Cambridge municipal election.
This site is static, but the static content is generated using npm. We've done this for serveral reasons: so snippets of html can be included on all pages; minifying css; image manipulation.
To follow those steps:
- install node.js
Then, from the main directory of this project:
- run:
npm install
- run:
npm run gulp
- for continuous updates:
npm run gulp-watch
Since the site uses interal paths relative to the root, for links to work locally, you'll either have to put everything in your computer's root or run a simple server, such as:
npm run static
orpython -m SimpleHTTPServer 8080
127.0.0.1:8080/
In general, if there is a file in "src", you should modify that one.
To change how the project is build, update gulpfile.js
.
- add an html file to
src/topic/
, such assrc/topic/your_topic.html
- edit that file to include the information you want!
- build and run as suggested above
Don't live in Cambridge, but want this to exist for your upcoming elections?
Awesome!
You'll want to:
- fork this project
- replace references to Cambridge with your city
- host it!
Feel free to contact us at [email protected].