The front-end of Pulse sits on top of Node.js. After installing Node, you can install local dependencies via npm install
.
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 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
.
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
.
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
.