From 3d6a007b9d04bd235822ff247fca304e3e76acea Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 27 Jan 2017 13:18:07 -0500 Subject: [PATCH 1/2] Change one last reference of `npm` to `yarn` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 947cdf50026..4b19c37cb5a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This will run a local frontend using the staging backend (hosted on Heroku at [staging-crates-io.herokuapp.com](https://staging-crates-io.herokuapp.com)). If you'd like to run the frontend with a specific backend endpoint, you can -specify arguments to `npm start`. For example you can set the proxy to +specify arguments to `yarn start`. For example you can set the proxy to `https://crates.io/` to use the production version. **Note: it is also possible to make changes to the production data** From 618cd6f504a22e98a6fd693d1a135ac04df29c19 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sun, 29 Jan 2017 10:36:39 -0500 Subject: [PATCH 2/2] Add a note about running frontend with test fixture data --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4b19c37cb5a..d0b99bdd030 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,18 @@ yarn run start:staging This will run a local frontend using the staging backend (hosted on Heroku at [staging-crates-io.herokuapp.com](https://staging-crates-io.herokuapp.com)). -If you'd like to run the frontend with a specific backend endpoint, you can -specify arguments to `yarn start`. For example you can set the proxy to -`https://crates.io/` to use the production version. +If you want to set up a particular situation, you can edit the fixture data used +for tests in `app/mirage/fixtures`. Note that the fixture data does not contain +JSON needed to support every page, so some pages might not load correctly. To +run the frontend and use that data, don't specify any backend: + +```bash +yarn run start +``` + +If you'd like to run the frontend with a specific backend endpoint, you can +specify arguments to `yarn start`. For example you can set the proxy to +`https://crates.io/` to use the production version. **Note: it is also possible to make changes to the production data**