mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-25 21:04:30 +00:00
93d313b21c9f488ce7f3b2074111504b398a0dfb
* limitations to carriers and speech * post speech to a different path if scoped user * add filtering to speech creds * check reroute when logging in * faulty checks * fix access conditionals * add restrictions to applications and accounts * apply 1st review comments * fix routing * apply review comments * discussed changes * useScopedRedirect * Refactor how we manage scope for navi (#163) * fix user name * Fix useScopedRedirect hook (#164) * Fix useScopedRedirect hook * Refactor user UI * Move user-me to own directory * add scope limits to routes * scope optional limits * cleanup * apply review comments * Refactor conditional apiUrl logic -- add apiPath to deps in useApiData hook (#168) * apply review comments - accountFilter remove from AccountScoped Views * remove account filtering as it is done on back-end now * Cleanup some things * Clean up some scope things * Implement account user PUT method for carriers * filterScopeOptions accorfing to user scope Co-authored-by: eglehelms <e.helms@cognigy.com> Co-authored-by: Brandon Lee Kitajchuk <bk@kitajchuk.com> Co-authored-by: Dave Horton <daveh@beachdognet.com>
jambonz
A simple provisioning webapp for jambonz
OSS Developers
If you're here to contribute to the jambonz web app source code you can view our contributor readme.
Webapp deployment
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.
Update production
If there is an update to this code base, you can update the code without re-deploying.
- run
git pull origin main --rebase - run
npm i - run
npm run build
With docker
You can pull the public docker image for the web app:
docker pull ghcr.io/jambonz/webapp:latest
You can run the docker image for the webapp and expose the serve port to the host:
docker run --publish=3001:3001 ghcr.io/jambonz/webapp:latest
You can build and run the docker image from the source, for example:
docker build . --tag jambonz-webapp:local
docker run --publish=3001:3001 jambonz-webapp:local
Languages
TypeScript
93.8%
SCSS
5.8%
HTML
0.2%
Shell
0.2%