Skip to content

Latest commit

 

History

History
92 lines (74 loc) · 2.04 KB

README.md

File metadata and controls

92 lines (74 loc) · 2.04 KB

Basic Chat App using React.js and Socket.io

This is a basic chat application built using React.js on the client-side and Socket.io on the server-side for real-time communication.

Features

  • Real-time messaging
  • Simple user interface
  • Supports multiple users simultaneously

Technologies Used

  • React.js
  • Socket.io
  • Node.js
  • Express.js

Installation

Prerequisites

  • Node.js installed on your machine

Steps

  1. Clone the repository:
    git clone https://github.com/your-username/basic-chat-app.git
  2. Navigate to the project directory:
    cd basic-chat-app
  3. Install dependencies for both the client and server:
    # Install client dependencies
    cd client
    npm install
    
    # Install server dependencies
    cd ../server
    npm install
  4. Start the server:
    # From the server directory
    npm start
  5. Start the client:
    # From the client directory
    npm start
  6. Open your browser and navigate to http://localhost:3000 to view the chat application.

Project Structure

Client

The client directory contains all the files related to the React.js client-side application.

client │ README.md │ package.json │ ... └───src │ index.js │ App.js │ ... └───components │ │ Chat.js │ │ ... └───assets │ logo.png │ ...

Server

The server directory contains all the files related to the Node.js/Express.js server-side application.

server │ README.md │ package.json │ server.js │ ...

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the developers of React.js and Socket.io for providing powerful tools for building real-time applications.
  • Special thanks to all contributors and users for their feedback and support.