- 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
- Download Vagrant: https://www.vagrantup.com/downloads.html
- Download VirtualBox: https://www.virtualbox.org/wiki/Downloads
- 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
- Install argon2 using the following steps found here: https://www.npmjs.com/package/argon2#before-installing
- Create a
secret.json
file to use in signing session cookies. - 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
Make sure to never push into the development
branch without having merged it to your branch first to resolve any potential merge conflicts that may arise. The development
branch is to stay merge conflict-free.
For this project, we use the following format to name branches:
- Release branch:
release-1.0
- Feature branch:
f-branch-name
- Bug fix branch:
b-branch-name
- Hot fix branch:
h-branch-name
- Refactor branch:
r-branch-name
Hot fixes are only meant to be quick critical fixes that get immediately pushed into production. Merge this directly into the development
branch, followed by the release
& master
branch.
Copyright (c) 2017, https://github.com/RecursiveLogic
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is NOT granted, unless written consent from the publisher is granted.