Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Blueriq has a standard Material Theme packaged but when creating your own theme this must be deployed somehow. 
A way to do so can be done via nginx / Tomcat / or whatever you prefer to use. Below you will find an example on how to do this for nginxYou need a web server for this that conforms to these requirements:

  1. The web server should be able to serve static content
  2. The web server should be able to proxy API requests to the runtime

By proxying the runtime requests, the theme and the backend share the same origin, so XHR-requests from theme to runtime are allowed by the default browser security policy.

Suitable webservers include, but are not limited to nginx, Apache httpd and IIS.

Yarn build

The Material Kickstarted Kickstarter comes with 2 build scripts and both use a different environment.ts file which can be configured if needed. Configurating in this case means changing the baseUrl.

  1. Change the `environment.runtime.ts` baseUrl to `/server`
  2. Run `yarn build:runtime` (which uses the environment.runtime.ts's configuration)
  3. When finished: Copy the content of /dist to a application server you prefer (for NGINX nginx that would be: /html)

...

nginx

For getting started with NGINX nginx please take a look at their documentation: https://www.nginx.com/resources/wiki/ 
The following configuration is the minimum needed to get the theme up and running. You could need adjustments to fit your own specific setup.

...