Make sure you have installed all these prerequisites:
- Node.js and the npm package manager.
- MongoDB, version 2.6 (2.2 is too old)
- Bower
npm -g install bower
- Grunt
npm -g install grunt-cli
- Clone the repository:
git clone https://github.com/Trustroots/trustroots.git trustroots
- Install dependencies by running this inside trustroots folder:
npm install
. Note that if you run npm with sudo, it might skip installing frontend assets. You can run it manually:bower install
. - Make sure MongoDb is running on the default port (27017)
- Copy config _template to development:
cp ./config/secret/_template.js ./config/secret/development.js
— add any configurations you want to keep out of version control here. Many features rely on sending emails, so add settings to themailer
section. See nodemailer smtp usage and note that it has pre filled settings for some services. - Finally run grunt default task:
grunt
Application should run on the 3000 port in development mode. Open http://localhost:3000 in your browser.