Skip to content

Percy's frontend web application, built with Ember.

License

Notifications You must be signed in to change notification settings

luketheobscure/percy-web

Repository files navigation

percy-web

Build status

Percy's frontend web application, built with Ember.

Setup

First, install yarn.

Then, run:

yarn
bower install

Run server

PERCY_DEV_MIRAGE=yes npm run start

Then, access http://localhost:4200

Using local API server

Edit /etc/hosts to add a local hostname (required):

# Add this to /etc/hosts:
127.0.0.1  dev.percy.local

Then, run:

npm run start

Using the production API

First, add the dev.percy.local hostname above. Then, two environment variables must be set:

export PERCY_WEB_AUTH_TOKEN=...
export PERCY_WEB_API_HOST=https://percy.io

npm run start

PERCY_WEB_AUTH_TOKEN is a full-access user token, different than the normal project PERCY_TOKEN.

Then, access http://dev.percy.local:4200

Run tests

npm test

Or, visit http://dev.percy.local:4200/tests.

Or, to run in ember test --server mode:

npm run test:server

Run tests locally with Percy enabled

PERCY_TOKEN=... PERCY_PROJECT=percy/percy-web npm test

About

Percy's frontend web application, built with Ember.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published