AI-comp / wpcs

2 stars 2 forks source link

wpcs [Build Status] (https://travis-ci.org/AI-comp/wpcs) [Dependency Status] (https://gemnasium.com/AI-comp/wpcs) [Code Climate] (https://codeclimate.com/github/AI-comp/wpcs) [Coverage Status] (https://coveralls.io/r/AI-comp/wpcs)

=====

Requirements

Setup

Install dependencies

Run on development environment

  1. Initialize database and assets

    rake db:migrate:reset assets:clean assets:precompile
  2. [Optional] Populate database with mock data (for testing purpose)

    rake populate:mock
  3. [Optional] Create users with predefined passwords and groups

    rake ghosts[num_groups,num_users(per group),debug(optional)]

    Notice

    • You might have to escape brackets like rake ghosts\[20,5,debug\] on shells
    • Database should not contain "Group#{N}" named groups nor "user_#{N}_#{M}" named users already
    • Information will be output to ghosts.csv
  4. [Optinal] Start automatic Rspec tesing with Guard and Spork

    guard
  5. Run a rails sever on your machine in development mode

    rails s

Run on production environment

  1. Initialize database and assets

    rake db:migrate:reset assets:clean assets:precompile RAILS_ENV=production
  2. Run a rails sever on your machine in production mode

    rails s -e production

Documents

Performance Testing

You might have to use ruby with version >= 1.9.3 and <= 2.0.0.

rake test:benchmark

Daily development