mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2025-12-19 05:37:43 +00:00
initial scaffold switch to preact/compat add feather icons dep jambonz-ui, index.html stub auth and store readme tweaks alias preact in vite config more readme tweaks Update README.md lots of things login flow... add notes on apis by route lots of work... readmes constants Update login.tsx Update index.ts Update index.ts Update create-password.tsx Update actions.ts Update index.tsx Update index.tsx Update actions.ts Update index.ts react version for eslint some refactor and cleanup Update api.ts Update create-password.tsx fetch transport wrapper api util toast time -- oops msg constants img path for docs/readmes global dispatch, generic actions etc... unreachable and stuff properly wrap require-auth routes support promise chain and async/await for api fetch transport initial responsive navi menu Update navi-data.ts Update navi.tsx Update styles.scss Rename navi-data.ts to navi-items.ts Update navi.tsx Update index.ts Update layout.tsx Update index.ts Update layout.tsx Update index.tsx Update index.tsx Update actions.ts Update index.tsx Update index.tsx Update create-password.tsx Update login.tsx Update create-password.tsx move things around access control interface Update index.tsx acl component etc working on settings form.. more settings, forms, HOCs service providers workflow button up modals and toasts mobile navi and toast timeout Update index.tsx Update index.ts Update and rename index.ts to index.tsx Update create-password.tsx Update create-password.tsx Update Dockerfile Update entrypoint.sh Update Dockerfile Update navi.tsx Update auth.tsx Update auth.tsx Update layout.tsx Update layout.tsx Update login.tsx Update login.tsx Update settings.tsx Update index.tsx Update index.ts better lint-staged fix sp undefined toast dispatch helpers sass vars -- no magic numbers Update index.ts Update create-password.tsx Update login.tsx Update index.ts Update settings.tsx Update accounts.tsx working on settings... Update index.ts Update settings.tsx Update index.tsx more settings view... get rid of most any usage Update index.tsx better api hook get strong with types obscured text component HOC for dispatch type-safety tweak api types github icon on login layout responsive grid -- api keys better fetch transport with resolve/reject fix generic action/dispatch typings prefer interface for GlobalDispatch Update index.ts Update auth.tsx Update auth.tsx Update create-password.tsx checkzones wrap up checkzones move styles around... alias src stub internal views stub not found container contrib readme and codeowners Update README.md Update and rename setup.md to environment.md Update environment.md Update environment.md Update contrib.md Update contrib.md Update contrib.md Update and rename contrib.md to contributors.md Update contributors.md Update index.ts use api data hook accounts stub, generic apikeys container account edit form Update edit.tsx Update edit.tsx add/edit for account form lots of good refactors check current sp on settings grid stuff Update index.scss Update styles.scss Update contributors.md Update constants.ts stubbing accounts as card view Update types.ts Update types.ts Update auth.tsx Update create-password.tsx Update index.ts Update index.tsx fix enum status codes component cleanup delete account flow Update types.ts Update delete.tsx Update use-mobile-media.ts acl hoc Update types.ts Update index.ts Update types.ts fix generic useapidata Update types.ts Update types.ts Update types.ts Create index.tsx Create types.ts Update types.ts Create types.ts Update index.tsx button up acl, feature flags and docs subspace initial feature stub fix some things wrap up subspace feature tooltip Update subspace.tsx Delete styles.scss Update types.ts Update auth.tsx Update index.ts some more type stuff add react/jsx-key error for missing shorthand frag keys basic spinner... no accounts data files for regions and speech vendor selector logic tighten up vendor stuff bit more cleanup Update types.ts Update index.tsx Update index.tsx Update subspace.tsx fix some type things stub mock dev server implementation add parity for account siprec_hook_sid latest jambonz-ui update cleanup package.json fix docker stuff docker notes in readme adding github actions package lock version remove unused jest deps update jambonz-ui new new jambonz-ui list view vs cards view fix no accounts list view fix prettier config
1.8 KiB
1.8 KiB
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