If this is the first time you are starting the UI, you need to run
$ npm install
If you trying to refresh your install you can run:
$ npm run reinstall
Start the app by executing the following.
$ npm start
Location of the backend can be determained at runtime (via settings.json
) or at build time.
If LAUNCHPAD_BACKEND_URL
environment variable is set at build time, this value will be used to connect to the backend.
Otherwise settings.json will be fetched at runtime and the contents used connect to the backend.
To generate production build, set the backend url (the host and port of where
generator backend is deployed) either in the settings.json or as LAUNCHPAD_BACKEND_URL
environment variable
and run the npm
command as given below:
npm run build:prod
The build output will be under dist
directory.