Checkout sources
$ git clone [email protected]:ikeyasu/metro-life.git
Run mongoDB. (It's not under the 'metro-life' directory.)
$ mkdir -f mongodb-metr-life
$ mongod --dbpath mongodb-metr-life/
Install dependencies.
$ cd metro-life
$ npm install
$ bower install
Edit server/config/local.env.js
$ cp server/config/local.env.sample.js server/config/local.env.js
$ vi server/config/local.env.js
server/config/local.env.js
module.exports = {
DOMAIN: 'http://localhost:9000',
SESSION_SECRET: 'metrolife-secret',
// See https://developer.tokyometroapp.jp/oauth/applications
TOKYOMETRO_ACCESS_TOKEN: '{access token}', // <=== EDIT HERE!
// Control debug level for modules using visionmedia/debug
DEBUG: ''
};
Open another terminal and run server
$ grunt serve
See generator-angular-fullstack for details.
Run tests
$ grunt test # Run all tests
$ grunt test:client # client tests only (Jasmine)
$ grunt test:server # server tests only (Mocha)
You need to first run
$ npm run update-webdriver
Then,
$ grunt test:e2e