Web Deployment

Web client's source code is located in the /web directory of HollaEx Kit folder.

There are two options to build and deploy the Web client:

  • HollaEx CLI

  • Manual build

Make sure you have enough memory on your machine and in case you encounter out of memory errors use --max-old-space-size=4076 command to set higher memory limit in the build process.

The initial setup process for HollaEx Web Client will take approximately seven minutes. During this process, your terminal will display the messageCreating an optimized production build... for about five minutes. You may think the setup process is stuck but do not worry, the web client is being built behind the scenes and will be available soon.

Web HollaEx CLI

HollaEx CLI have a set of web commands where you can build your web client by going to /web and using the command sets below.

hollaex web (--setup / --start / --stop / --restart / --build / --terminate) (--kube)
  • --setup : Similar to hollaex setup, fill the form to configure your web client. If you already finished hollaex setup process, You don't need to run hollaex web --setup additionally.

  • --start : Start the web client. HollaEx CLI will build a docker image based on your /web directory. Web will be reachable through the browser using the provided domain URL.

  • --stop: Stop the web client. This command will not remove anything. It will only stop the web client.

  • --restart : Restart the web client.

  • --upgrade : Rebuild the web client Docker image. Run this command if you made code changes in the /web directory or changed settings files values.

  • --build: Build the Docker image for the web client server.

  • --terminate: Terminate the web client. This command can't be undone, so make sure this is your intent before running this command.

The --kube flag will do exactly same operation for web at the Kubernetes cluster. Make sure to export your KUBECONFIG file before running this command.

Manual build

A custom, manual build requires you to build the dependencies by using npm install and set the environment variables in .env

We already have set the example environment variables in .env.example. Copy the values to a new file called .env, set the values, and run your exchange. You can get more information on these variables in Web Customization.

After setting the .env, build the package with npm run build and host the /build static folder independently.