mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-21 19:04:22 +00:00
6b9d206f4f8286c65ed9e3337c47a231fdb0a1ee
* feat: add custom tts and stt endpoints for microsoft * feat: add custom tts and stt endpoints for microsoft * fix: send null microsoft custom endpoints incase nothing is provided * fix: don't sent speech credentials in PUT method * fix:does not clear the custom stt/tts endpoints value when it's disabled * use tmp state to store custom tts/stt endpoint when enable/disable it
Jambonz Web Application
Deploy to Production
- Install
pm2globally on the server hosting this application. - Copy
.envto.env.local - In
.env.local, replace[ip]:[port]with the API's IP and port - Run
npm run deploy - Access the web app via port 3001
NOTE: Here is what npm run deploy does:
- Install all dependencies (
npm i) - Build the production React application (
npm run build) - Launch the app with pm2 (
pm2 start npm --name "jambonz-webapp" -- run serve)
Alternatively, you can serve the app manually (without pm2) with npm run serve.
Updates
If there is an update to this code base, you can update the code without re-deploying.
- run
git pull - run
npm run build
Development
Local server
See howto-setup-test-environment for details on how to set up a complete local test environment on your laptop.
Remote server
If you want to test against a remote server, you must specify the IP:port of the Jambonz API you will be hitting.
- Copy
.envto.env.local - In
.env.local, replace[ip]:[port]with the API's IP and port npm start- Access the web app via http://localhost:3001
Languages
TypeScript
93.8%
SCSS
5.8%
HTML
0.2%
Shell
0.2%