Percy's frontend web application, built with Ember.
First, install yarn.
Then, run:
yarn
bower install
PERCY_DEV_MIRAGE=yes npm run start
Then, access http://localhost:4200
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
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
npm test
Or, visit http://dev.percy.local:4200/tests.
Or, to run in ember test --server
mode:
npm run test:server
PERCY_TOKEN=... PERCY_PROJECT=percy/percy-web npm test