Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 836 Bytes

README.adoc

File metadata and controls

36 lines (24 loc) · 836 Bytes

ALMighty UI

If this is the first time you are starting the UI you need to run

$ npm install

Start the app by executing the following.

$ npm start

If you wish to run the app with the in-memory dataset, you need to set an environment variable "ENV" to "inmemory" and do a rebuild. The setting is stored inside the build, changing the value back to unset or "development" (default for npm start) needs a rebuild to take effect.

Production build

To generate production build, set the API URL and run npm command as give below:

export API_URL="http://api.example.org/api/"
npm run build:prod

The build output will be under dist directory.

To create docker image, run this command immediatly after the previous command:

docker build -t almighty-ui-deploy -f Dockerfile.deploy .