Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 1.2 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.2 KB

Pulse Front-End

Installation

The front-end of Pulse sits on top of Node.js. After installing Node, you can install local dependencies via npm install.

Development/Deployment

For development:

npm start

The application will be available at http://localhost:8080.

For deployment:

  $ API_HOST_URL=http://pulse-acceptance-backend.cfapps.io npm run build
  $ cf push pulse-acceptance-frontend

Environment Variables

Environment variables can be passed via the command line, e.g. API_HOST_URL=http://www.example.com npm start.

  • API_HOST_URL is a fully-qualified URL root for the API server. Default: http://localhost:8081.

Testing

Unit tests can be run via npm test. This uses Karma underneath the hood; if you would like to customize your Karma command line options, feel free to npm install -g karma-cli.

Optional

Under the hood, we rely on Grunt, Karma, and Webpack. If you'd like to customize the options that get passed to any of these tools, you can install them globally via npm install -g grunt-cli karma-cli webpack.