Skip to content

GrowMoi/moi-front-end

Repository files navigation

moi-front-end

## development Circle CI Code Climate

development requirements

  • ruby & bundler
  • nodejs

booting up

  1. git clone git@github.com:GrowMoi/moi-front-end.git
  2. bundle
  3. npm install && bower install
  4. grunt serve

testing

we'll be using mocha + chai + sinon

run test suite with

grunt test

unit specs

aka karma

grunt karma:continuous

e2e specs

aka protractor.

End-to-end specs are run against integration's backend server. Take a look at backend environments at https://github.com/GrowMoi/moi/wiki/Environment

we are using chai-as-promised to resolve our promises on expectations

protractor:ci task

This task and runs a simple express server which will serve protractor's tests

This task will:

  1. build assets with test environment
  2. build html templates with jade and store them inside /templates
  3. run a simple express server to serve the application
grunt protractor:ci

if you're running protractor locally, make sure you are also running the backend to answer requests. Will be looked for by default on development environment at localhost:5000

for ios emulate install

$ npm install -g ios-sim

deploy production (moi)

$ bundle exec cap production deploy

deploy abi (BDP)

first build for production locally and then deploy (will copy the dist folder to the server)

$ grunt build
$ bundle exec cap abi deploy

resources

Releases

No releases published

Packages

 
 
 

Contributors