Skip to content

Chat App (Socket.IO) is a real-time one-to-one messaging app built with Node.js, Express, Socket.IO, and SQLite. It features a clean WhatsApp-style UI, instant message delivery, and persistent chat history. A simple yet effective example of using WebSockets for private communication.

Notifications You must be signed in to change notification settings

superdudeneel/WhisperSocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat App (Socket.IO)

Overview

This is a real-time chat application built with Node.js, Express, Socket.IO, and SQLite. Users can register with a username and send direct messages to other users. Messages are stored in a database and delivered instantly if the recipient is online, or shown when they next connect.

Features

  • Real-time messaging using Socket.IO
  • User registration (username-based)
  • Direct (one-to-one) chat
  • Message persistence with SQLite
  • Modern WhatsApp-style UI

Project Structure

index.js              # Main server logic (Express, Socket.IO, SQLite)
package.json          # Project metadata and dependencies
public/
  css/
    message.css       # Chat UI styles
  js/
    message.js        # Frontend chat logic
templates/
  message.html        # Main chat interface (HTML)

Getting Started

Prerequisites

Installation

  1. Clone or download this repository.
  2. Install dependencies:
    npm install

Running the App

Start the server:

npm start

The app will run on http://localhost:4000

Usage

  1. Open the app in your browser.
  2. Enter a username to register.
  3. Use the chat interface to send messages to other users by entering their username.
  4. Messages are delivered instantly if the recipient is online, or shown when they next connect.

Customization

  • Edit public/css/message.css for styles.
  • Edit public/js/message.js for frontend logic.
  • Edit templates/message.html for the HTML interface.
  • Edit index.js for backend/server logic.

About

Chat App (Socket.IO) is a real-time one-to-one messaging app built with Node.js, Express, Socket.IO, and SQLite. It features a clean WhatsApp-style UI, instant message delivery, and persistent chat history. A simple yet effective example of using WebSockets for private communication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published