Read file: package.json Read file: server.js Read file: public/index.html Read file: public/room.html Read file: public/style.css Read file: server.js
Here’s a draft for your README file, summarizing your project, installation, usage, and build instructions for GitHub. This is based on your code and previous requests:
A modern, real-time web chat application built with Node.js, Express, and Socket.io. Users can join chat rooms using a 5-digit code, send text and image messages, and enjoy a sleek, mobile-friendly interface.
- Real-time chat with Socket.io
- Join rooms using a 5-digit code
- Send images (upload or paste)
- Modern, responsive UI
- Cross-platform single-file executable builds (Windows, macOS, Linux)
(Add screenshots here if you wish)
git clone https://github.com/yourusername/messager.git
cd messagernpm installnpm startThe server will start on http://localhost:3002.
- Open http://localhost:3002 in your browser.
- Enter a display name and a 5-digit room code to join or create a chat room.
- Start chatting! You can send text or images (via the camera button or by pasting).
This project supports building standalone executables for Windows, macOS, and Linux using pkg.
npm run buildThe executables will be in the dist/ directory.
Uploaded images are stored in a messager-uploads directory in your home folder. Images are accessible only via the chat interface.
server.js– Main server and Socket.io logicpublic/– Static frontend files (HTML, CSS, JS)uploads/– (Served dynamically) Uploaded images
MIT