Create a file named .env
in the root folder with REACT_APP_PRBZ_URL=http://localhost:8080/prbz-overview/rest/api/
(this will be ignored by git).
Add a filter to Undertow settings to enable CORS
<subsystem xmlns="urn:jboss:domain:undertow:11.0" … >
< … />
<server name="default-server">
< … />
<host name="default-host" alias="localhost">
< … />
<filter-ref name="Access-Control-Allow-Origin"/>
</host>
</server>
< … />
<filters>
<response-header name="Access-Control-Allow-Origin" header-name="Access-Control-Allow-Origin" header-value="http://localhost:3000"/>
</filters>
</subsystem>
Get here
Deploy PRBZ-overview and wait for everything to load (~30 mins)
- Install
yarn
(a dependency manager for JavaScript projects) - Run
yarn install && yarn start
Installs dependencies, needs to be run only once unless dependencies have changed (package.json
)
Starts a local server and opens a browser, in case nothing happens go to http://localhost:3000/.
Builds the app, to deploy it copy the contents of the build
folder.