Skip to content

Commit

Permalink
Merge pull request #896 from ember-learn/jaredgalanis-patch-1
Browse files Browse the repository at this point in the history
Update README to include fully local run
  • Loading branch information
jaredgalanis authored Nov 14, 2023
2 parents 9036613 + c55a956 commit 5de2fb7
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ Some tips for working with git/GitHub can be found in

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

## Quickstart to run semi-locally
## Running in your local environment

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.

### Quickstart to run locally

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

### Run locally with a sym-link

Clone all of the following repositories into the same directory so they are "siblings" on the file system:

- This repository, `ember-api-docs`
- [ember-api-docs-data](https://github.com/ember-learn/ember-api-docs-data)

```sh
git clone https://github.com/ember-learn/ember-api-docs-data
git clone https://github.com/ember-learn/ember-api-docs
cd ember-api-docs
ln -s ../ember-api-docs-data
npm install
npm start
```

Visit the app in your browser at [http://localhost:4200](http://localhost:4200)

## a11y testing

To run a11y tests, run `test_a11y=yes ember serve`
Expand Down

0 comments on commit 5de2fb7

Please sign in to comment.