Update static/config/api-url
for API
URL.
docker build -t jitok-ui .
docker run -p 8080:80 \
-v $PWD/static/config/api-url:/usr/share/nginx/html/config/api-url:ro \
jitok-ui
-
Install
nodejs
,yarn
andgit
packages. -
Get a copy of the repo (don't run as
root
):
git clone https://github.com/jitsi-contrib/jitok.git
- Install modules (don't run as
root
):
cd jitok/ui
yarn install
Set API_URL
in static/config/api-url according
to your environment.
http://127.0.0.1:9000/api
yarn run dev --host --port 3000
Build the static files:
yarn run build
Configure your web server to point to the build
folder.
e.g. for Nginx
location / {
root /home/jitok/ui/build;
try_files $uri /index.html;
}