Hospitality exchange community for hitchhikers and other travellers.
- You don't have the be a coder to participate. Check volunteers page for more info.
- Drop us a message
- Join #trustroots on Freenode chat
- Follow us on Twitter and Facebook
- Check our docs
- See documentation for MEAN.js boilerplate
- Install EditorConfig to your IDE if possible
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 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 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.
- Make sure the collections offers and users are empty, in order to avoid duplicate values.
- Run
node scripts/filltestData.js 1000
(for 1000 users and offers). - The script will create the users and the offers. It can take some time, it will tell you when it's finished.
- To see the result run
grunt
and log in trustroots with user: trout and password: password.