- yarn
yarn install
to install all necessary modulesyarn start
to run the app, it's accessible via http://localhost:4040 in the browser
An optimized (minimized) build can be created locally with the following command:
yarn build:local
This creates the optimized app, using the config/.env.local
configuration file. To serve the optimized app, run
yarn server:build
To build the app with production configuration (config/.env.production
) run
yarn build
Creating a docker image to serve this app is also possible:
docker build --no-cache --build-arg NODE_ENV=[local|production] --build-arg OPTIMIZED_BUILD=[true|false] -t helios-admin:latest .
docker run -p 80:4000 -d helios-admin:latest