That project is a simple semi-persistent PWA chat using web socket. Messages are keeped in memory and purged after X hours (configurable).
The src/config.json
(that you need to copy from src/config.json.dist
) is where you want to configure the app.
This project was bootstrapped with Create React App.
run npm run start
and node server
Run sudo ./build.sh
and use nginx to deliver the generated build
directory.
I suggest you to use pm2 to launch server by using ./pm2.sh
Also, adapt nginx to let pass web socket :
location /persistent-chat-ws/ {
proxy_pass http://127.0.0.1:6060;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}