Civic Engagement Launchpad 2017, Open Seat Finder
First, you'll need to install NodeJS. Great, now you're ready!
Install dependencies. You'll want to do this every time you git pull
.
$ npm install
Now, you can start the development server:
$ npm start
Open your browser to localhost:8081
. Hot reloading is enabled, so as you change the code, you'll see the browser update in real-time.
Deployments work like this:
- Compile and minify all files (
npm run dist
). - Push the dist folder to the
gh-pages
branch.
This process is automated by running:
$ npm run deploy
If you're on a Mac, I'd recommend installing with homebrew.
$ brew install nodejs
If you're on a PC, there's actually two steps:
- Stop using a PC.
- Just kidding. There's an installer. But seriously, get a grip.
Once you've installed it, make sure you've got a recent version. Anything 6+ should be fine.
$ node --version
v6.3.0