defineprogramming / react-chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Anonymous Chat

This is a simple anonymous chat application built with React. It allows users to chat with other anonymous users on a single page.

Prerequisites

  • Node.js
  • npm

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/react-anonymous-chat.git
  1. Navigate to the project directory:
cd react-anonymous-chat
  1. Install the dependencies:
npm install

Running the Application

  1. Start the server:
node server/index.js
  1. In a new terminal window, start the React application:
npm start
  1. Open your web browser and navigate to http://localhost:3000.

Usage

Just type your message in the input field and press the send button to chat. Your messages will be visible to all other users in the chat room.

Built With

  • React - A JavaScript library for building user interfaces
  • Socket.io - Enables real-time, bidirectional and event-based communication.
  • Express - Fast, unopinionated, minimalist web framework for Node.js

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About


Languages

Language:JavaScript 79.6%Language:CSS 14.6%Language:HTML 5.8%