Skip to content

Commit 5de2fb7

Browse files
authored
Merge pull request #896 from ember-learn/jaredgalanis-patch-1
Update README to include fully local run
2 parents 9036613 + c55a956 commit 5de2fb7

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ Some tips for working with git/GitHub can be found in
3333

3434
Please also see [CONTRIBUTING.md](CONTRIBUTING.md).
3535

36-
## Quickstart to run semi-locally
36+
## Running in your local environment
37+
38+
ember-api-docs expects a folder in its root that links to the `ember-api-docs-data` folder, so you can either use the `npm run clone` script to clone the `ember-api-docs-data` repo into `ember-api-docs`, OR you can create a symbolic link to `ember-api-docs-data` from `ember-api-docs`. You might want to sym-link `ember-api-docs-data` if you are generating new versions of the docs files with `ember-jsonapi-docs`, otherwise you can probably use the clone script.
39+
40+
### Quickstart to run locally
3741

3842
Follow these instructions to run the app using publically available online data.
3943
You do not need to run [ember-jsonapi-docs](https://github.com/ember-learn/ember-jsonapi-docs)
@@ -43,10 +47,29 @@ locally yourself.
4347
git clone https://github.com/ember-learn/ember-api-docs.git
4448
cd ember-api-docs
4549
npm install
46-
ember serve
50+
npm run clone
51+
npm run start
4752
```
4853
View at http://localhost:4200
4954

55+
### Run locally with a sym-link
56+
57+
Clone all of the following repositories into the same directory so they are "siblings" on the file system:
58+
59+
- This repository, `ember-api-docs`
60+
- [ember-api-docs-data](https://github.com/ember-learn/ember-api-docs-data)
61+
62+
```sh
63+
git clone https://github.com/ember-learn/ember-api-docs-data
64+
git clone https://github.com/ember-learn/ember-api-docs
65+
cd ember-api-docs
66+
ln -s ../ember-api-docs-data
67+
npm install
68+
npm start
69+
```
70+
71+
Visit the app in your browser at [http://localhost:4200](http://localhost:4200)
72+
5073
## a11y testing
5174

5275
To run a11y tests, run `test_a11y=yes ember serve`

0 commit comments

Comments
 (0)