This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Go to docker-server folder
cd docker-serverCopy .env.example to .env and fill the required values (AGORA_APP_ID, AGORA_APP_CERTIFICATE)
cp .env.example .envCopy .env.example to .env and fill the required values (APP_PORT, SERVER_PORT, VITE_TOKEN_ENDPOINT)
cp .env.example .envInstall package
npm installBuild docker containers (BE, FE) and run it
docker compose build
docker compose up -dRun the development server:
npm run devOpen http://localhost:5173/room/test1 with your browser to see the result.
Go to docker-server folder
cd docker-serverCopy .env.example to .env and fill the required values (AGORA_APP_ID, AGORA_APP_CERTIFICATE)
cp .env.example .envCopy .env.example to .env and fill the required values (APP_PORT, SERVER_PORT)
cp .env.example .envBuild docker containers (BE, FE) and run it
docker compose build
docker compose up -d