C-D-Lewis / stack-chat

Simple chat app server and client using WebSockets and React.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stack-chat

Simple chat app server and client using WebSockets and React.

Server

Start with npm:

export PORT=8080

npm start

Client

Create a configuration:

# Server host
export HOST=localhost
# Server port
export PORT=8080
# Message of the day
export MOTD='Hello, this is the message of the day!'

npm run create-config

Build with Webpack:

npm run build

Serve with Python:

python3 -m http.server

TODO

  • Dockerfile
  • Terraform deploy
  • Press enter to send
  • Autofocus input after send

About

Simple chat app server and client using WebSockets and React.

License:Apache License 2.0


Languages

Language:JavaScript 96.0%Language:HTML 3.3%Language:CSS 0.7%