- To install the dependencies, run
npm install. - To build the application, run
npm run build. - To start the application, run
npm run start. - Setup and run the backend
- Set a reverse http proxy to route
/generateto the backend. Example using httpd:
<VirtualHost *:443>
proxypreservehost on
SSLProxyEngine on
SSLProxyCheckPeerName off
proxypass /generate http://127.0.0.1:5000/
proxypassreverse /generate http://127.0.0.1:5000/
proxypass / https://127.0.0.1:5241/
proxypassreverse / https://127.0.0.1:5241/
SSLProxyEngine On
SSLCertificateFile "..."
SSLCertificateKeyFile "..."
</VirtualHost>