- Make sure you have at least Node v6+
- Run
npm install
- Run
npm run development
for the dev environment - Run
npm run production
to generate a static file build in the/static
directory npm test
to run unit tests (which aren't set up yet)
- Download Vagrant: https://www.vagrantup.com/downloads.html
- Set up a Debian box with VirtualBox as the provider: https://atlas.hashicorp.com/debian/boxes/jessie64
- Run
vagrant up
within the project's root directory - Run
vagrant provision
to run the provision script again ONLY if you have modified it - Follow the commands printed out by the provision script
- Run
npm start
to get the Node server running whilst connected to the PostgreSQL database - Hack the planet
If you don't have nvm
(Node Version Manager) yet, it is highly advised that you install it. Simply use one of the two following install scripts:
- For cURL:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
- For Wget:
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash