This will be a web app used for collectives of people to manage democratically controlled projects.
All of the code for the front-end web app is tested, compiled, and minified using the Grunt build system. All 3rd party dependencies are managed using NPM and Bower.
You only have to follow these steps once, to get all of the build tools on your dev machine
npm install -g bower
npm install -g grunt-cli
npm install -g karma
- Pull down the build dependencies using NPM
cd /path/to/project/root
npm install
Whenever the source code changes, it must be rebuilt before it will run in production.
cd /path/to/project/root
grunt
You can use Vagrant to set up a completely isolated development and test environment on any PC.
- Install VirtualBox
- Install Vagrant
- From the project folder, start vagrant
vagrant up
- Edit the
hosts
file on your system (required for authentication to work). The vm uses a bridged adapter, so you need to find its ip address on your network, and add an entry like the following:
192.168.0.123 projects.d0ck.me
- In your browser, navigate to http://projects.d0ck.me/dev
- Any changes to the source will be immediately reflected after a browser refresh
- To run the compiled, production code instead, navigate to http://projects.d0ck.me/