Skip to content

Deployment and Debugging

slycloud edited this page Jan 27, 2015 · 6 revisions

Clone Source Code

$ git clone git://github.com/yuantiku/flyboard

Installation Dependency

$ npm install
$ npm install sqlite3 # OR npm install mysql
$ npm install -g mocha supervisor

Database Configuration

copy configs/database.example.js to configs/database.js,then edit it.

Then,

  • run npm run migrate:make to create a migration file, in which table configuration is edited.
  • run npm run migrate:latest to run latest migration files, initialing tables structure.
  • run npm run migrate:rollback to rollback migration files run last time.

Start Service

$ DEBUG=flyboard supervisor bin/www

Run Unit Testing

open a new terminal,and run mocha -w to view the conditions of unit testing in real time.