Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md for running locally #2983

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,17 @@ 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 `'/apps/advisor': {
host: 'http://0.0.0.0: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
Loading