npm install
npm start
Environment variables should be defined in a uncommited file .env.local at the project's root/
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=...
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.
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 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.
npm run lint
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