Update frontend readme.

This commit is contained in:
Martin Maroši 2021-10-12 13:34:20 +02:00 committed by Sanne Raymaekers
parent d3999cbf87
commit 50d4e363ba

View file

@ -5,6 +5,20 @@
To develop the frontend you can use a proxy to run image-builder-frontend locally
against the chrome and backend at cloud.redhat.com.
### Nodejs and npm version
Make sure you have npm@7 and node 15+ installed. If you need multiple versions of nodejs check out [nvm](https://github.com/nvm-sh/nvm).
### Webpack proxy
1. run `npm i`
2. run `npm run start:proxy:beta`. This command uses a ci-beta env by default. Configure your environment by the `env` attribute in `dev.webpack.config.js`
3. open browser at `https://ci.foo.redhat.com:1337/beta/insights/image-builder`
### Insights proxy (deprecated)
1. Clone the insights proxy: https://github.com/RedHatInsights/insights-proxy
2. Setting up the proxy