Skip to content
A simple node semi-persistent chat without database (messages are in server’s memory and purged after few hours)
JavaScript CSS HTML Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
public
src
.gitignore
README.md
build.sh
package-lock.json
package.json
pm2.sh

README.md

Semi Persistent Chat

That project is a simple semi-persistent PWA chat using web socket. Messages are kept 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.

To dev

run npm run start and node server

To deploy on production

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";
}
You can’t perform that action at this time.