Live preview: DEMO
- Server: Express, WebSocket, TypeScript
- Client: React, WebSocket, Bootstrap, TypeScript
Replace <prod|test|dev> with destination build type.
docker-compose -f docker-compose.yml -f docker-compose.<prod|test|dev>.yml up -d
- Configure .env files for client and server, examples bellow.
Client
npm install
npm start
Server
npm install
npm run dev
In client root directory create:
- .env.development .env.production .env.test
REACT_APP_WS_URL=ws://localhost:8080
In server root directory create:
- .env.development .env.production .env.test
PORT=8080
WEB_SERVER=false