/trustroots

Hospitality exchange community for hitchhikers and other travellers.

Primary LanguageJavaScriptOtherNOASSERTION

Trustroots

Hospitality exchange community for hitchhikers and other travellers.

Trustroots.org

Trustroots logo

Volunteering

Development

Prerequisites

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

Installation

  1. Clone the repository: git clone https://github.com/Trustroots/trustroots.git trustroots
  2. 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.
  3. Make sure MongoDb is running on the default port (27017)
  4. Copy config _template to develpment: 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 the mailer section. See nodemailer smtp usage and note that it has pre filled settings for some services.
  5. Finally run grunt default task: grunt

Application should run on the 3000 port in development mode. Open http://localhost:3000 in your browser.

Fill database with test users and offers

  1. Make sure the collections offers and users are empty, in order to avoid duplicate values.
  2. Run node scripts/filltestData.js 1000 (for 1000 users and offers).
  3. The script will create the users and the offers. It can take some time, it will tell you when it's finished.
  4. To see the result run grunt and log in trustroots with user: trout and password: password.

License

The MIT License