Skip to content

Twinlife/server-webapp-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript React Vite License: AGPL v3

twinme Click to Call webapp

Setup and local run

npm install
npm start

Configuration

Environment variables should be defined in a uncommited file .env.local at the project's root/

Local server configuration

VITE_APP_NAME=twinme
VITE_APP_WEBSITE=https://www.twin.me
VITE_APP_LOGO=twinme.png
VITE_APP_LOGO_BIG=twinme-big.webp
VITE_APP_THANKS_IMAGE=thanks_twinme.webp
VITE_APP_TRANSFER=false
VITE_APP_DEBUG=true

VITE_REST_URL=http://localhost:8081/rest
VITE_INVITE_URL="https://invite.mytwinlife.net?twincodeId="
VITE_PROXY_URL=ws://localhost:8081/p2p/connect

VITE_STORE_IOS=...
VITE_STORE_ANDROID=...
VITE_STORE_MAC=...
VITE_STORE_WINDOWS=...

Dev distant server configuration

VITE_APP_NAME=twinme
VITE_APP_WEBSITE=https://www.twin.me
VITE_APP_LOGO=twinme.png
VITE_APP_LOGO_BIG=twinme-big.webp
VITE_APP_THANKS_IMAGE=thanks_twinme.webp
VITE_APP_TRANSFER=false
VITE_APP_DEBUG=true

VITE_REST_URL=https://call.mytwinlife.net/rest
VITE_INVITE_URL="https://invite.mytwinlife.net?twincodeId="
VITE_PROXY_URL=wss://call.mytwinlife.net/p2p/connect

VITE_STORE_IOS=...
VITE_STORE_ANDROID=...
VITE_STORE_MAC=...
VITE_STORE_WINDOWS=...

Note: VITE_APP_TRANSFER must be set to true for the transfer application.

Build Skred and Twinme

With Skred configuration in .env.skred and Twinme configuration in .env.twinme, run one of the following commands. This will copy corresponding favicon assets and manifest as well.

npm run build:skred
npm run build:twinme
npm run build:mytwinlife

Debug

Debug mobile chrome from desktop application:

  • Connect define on Desktop through USB (enable debugging mode on Android),
  • In desktop Chrome type chrome://inspect

This displays a page where we can see the mobile chrome console with all Chrome debugging windows.

Lint

npm run lint

Updating package.json dependencies

npx npm-check-updates
npx npm-check-updates -f qrcode
npm outdated

Note: be careful that there are very often some regressions when updating dependencies

Translations

Files located in src/i18n are generated by the command npm run translate and all translations should be added to the translations/translations.json file. After adding and updating translations, we must run:

npm run translate
npm run prettier

and also commit the files located in src/i18n.

Dev notes:

About

Click-to-call web application for twinme & Skred

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •