Skip to content

PluribusDigital/flash-app

Repository files navigation

flash-app

Build Status Code Climate Test Coverage

DHS Flash Technical Challenge

Installation

Follow the installation steps below to get the Frontend AngularJS application running locally

- git clone https://github.com/STSILABS/flash-app.git
- cd flash-app
- cp src/app/app.example.config.js src/app/app.config.js

Use your favorite editor to update the app.config.js file with necessary variables (URL Base Route and API Key)

- npm install -g bower-npm-resolver
- npm install
- bower install
- gulp serve

Note: You may have to run sudo npm install --global gulp-cli

Running Tests

Use the following command to run the unit tests for the application

gulp test

Cucumber Acceptance Tests

Prerequisites:

  • Ruby 2.2.2
  • bundler (> gem install bundler)

Setup:

  • > bundle install to install cucumber & related tools
  • In /features/support/hooks.rb you can change the Capybara.app_host to hit different environments/urls

Running specs:

> cucumber

Tags: In the /features/*.feature files, you can tag a scenario (e.g. demo or debugging) with

  • @slow to playback in slomo
  • @pause to pause and wait for command line input