Skip to content

Commit

Permalink
Update README.md for running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente authored Dec 3, 2024
1 parent ecc17a4 commit 8941822
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ To run a script you have to install dependencies `npm install`. Then you are fre

You can spin chrome locally together with other applications. Use `LOCAL_APPS` to list the locally deployed applications.

#### Example 1 (using LOCAL_APPS)
#### Example 1 (using fec static)

For illustration, to deploy Advisor together with Insights Chrome, you would require to

1. Run Advisor on any available port with `npm run start -- --port=8004`,
2. Run Chrome and list the Advisor's port: `LOCAL_APPS=advisor:8004~http npm run dev`.
1. Ensure Advisor has the 'static: fec static' script
2. Run Advisor with `npm run static`
3. In Chrome, add advisor to the routes portion inside webpack.config.js `...(true && { '/apps/inventory': { host: 'http://localhost:8003', }, }),`
4. In Chrome then run `npm run dev`
- If youd like to run against a different env, this can be altered with the env variable, ex. 'prod-stable'.
#### Example 2 (using devServer route)
Expand Down

0 comments on commit 8941822

Please sign in to comment.