Skip to content

A simple node semi-persistent chat without database (messages are in server’s memory and purged after few hours)

Notifications You must be signed in to change notification settings

mcellier/semi-persistent-chat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semi Persistent Chat

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.

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";
}

About

A simple node semi-persistent chat without database (messages are in server’s memory and purged after few hours)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.1%
  • CSS 8.7%
  • HTML 3.3%
  • Shell 0.9%