Skip to content

Pioryd/chat-online

Repository files navigation

Chat online

main branch - test and build

Live preview: DEMO

Build with

  • Server: Express, WebSocket, TypeScript
  • Client: React, WebSocket, Bootstrap, TypeScript

Docker

Replace <prod|test|dev> with destination build type.

docker-compose -f docker-compose.yml -f docker-compose.<prod|test|dev>.yml up -d

Install and run

  • Configure .env files for client and server, examples bellow.

Client

npm install
npm start

Server

npm install
npm run dev

Client - example .env

In client root directory create:

  • .env.development .env.production .env.test
REACT_APP_WS_URL=ws://localhost:8080

Server - example .env

In server root directory create:

  • .env.development .env.production .env.test
PORT=8080
WEB_SERVER=false