Skip to content

Welcome to the Chat Application! This project is a real-time chat app built using Node.js, Express, Socket.IO, and vanilla JavaScript. It features a dark-themed UI and allows users to join a chat room, send and receive messages, and see notifications when users join or leave the chat.

Notifications You must be signed in to change notification settings

shoaibhasann/chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

💬 Chat Application

Welcome to the Chat Application! This project is a real-time chat app built using Node.js, Express, Socket.IO, and vanilla JavaScript. It features a dark-themed UI and allows users to join a chat room, send and receive messages, and see notifications when users join or leave the chat.

🌐 Live Preview

Checkout Live Preview by clicking the image below:

LivePreview

LivePreview

Tech Stack

  • Frontend:

    • Vite Vanilla JS Project
    • socket.io-client (for connecting to websocket server)
  • Backend:

    • socket.io (for websockets)
    • dotenv (for enviroment variables)
    • nodemon (for development server)
    • express (for handling HTTP requests)

Features

  • Real-time messaging with Socket.IO
  • User notifications for joining and leaving the chat
  • Dark-themed UI with responsive design
  • Support for multiple users in a chat room
  • Dynamic message display with animations

Technologies Used

  • Frontend: HTML, CSS, JavaScript
  • Backend: Node.js, Express, Socket.IO
  • Styling: CSS for a dark-themed UI
  • Development Tools: Vite for frontend build tool

Getting Started

To get started with the chat application, follow these steps:

Prerequisites

  • Node.js and npm installed on your machine

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/chat-app.git
    cd chat-app
    
  2. Install Backend dependencies:

    cd server
    npm install
    
  3. Install Frontend dependencies:

    cd ../client
    npm install
    
  4. Create a .env file in the server directory with the following content:

    PORT=9000
    CLIENT_URL=http://localhost:3000
    
  5. Start the backend server

    cd server
    npm start 
    
  6. Start the fronend server

    cd ../client
    npm run dev
    

Usage

  1. Open your browser and go to http://localhost:3000.
  2. Enter a username and click "Join" button.
  3. Start sending messages and see real-time updates.

Contributing

Contributions are welcome! Please follow these steps:

Acknowledgments

Inspired by various real-time chat applications Uses Socket.IO for real-time communication Styled with CSS for a dark-themed UI

Feel free to adjust any details to better match your project.

About

Welcome to the Chat Application! This project is a real-time chat app built using Node.js, Express, Socket.IO, and vanilla JavaScript. It features a dark-themed UI and allows users to join a chat room, send and receive messages, and see notifications when users join or leave the chat.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published