Welcome to the Chat Application! This project is a simple real-time chat application built using Node.js, Express, and Socket.io. It provides a platform for users to engage in real-time conversations, making it an ideal project for learning and experimenting with websockets.
- Real-time messaging using Socket.io
- Simple and intuitive user interface
- Easy setup and configuration
- Scalable and extendable for further customization
Before you begin, make sure you have the following installed on your machine:
-
Clone this repository:
git clone git@github.com:Atkinss1/chatApp.git
-
Navigate to the project directory:
cd chatApp -
Install dependencies:
npm install
-
Open the
index.jsfile in a text editor of your choice. -
Locate the following line of code on line 29:
const io = new Server
-
Update the socket address to your server's address or
localhostif running locally:const io = new Server(expressServer, { cors: { origin: 'http://your-server-address:your-port', methods: ['GET', 'POST'], }, });
-
Open the
app.jsfile in a text editor of your choice. -
Locate the following line of code on line 4 and update the socket address to your server's address or
localhostif running locally:const socket = io('http://your-server-address:your-port');
-
Start the server:
npm start
-
Open your web browser and navigate to
http://your-server-address:your-port. -
Enter a username and room, then start chatting!
This project is licensed under the MIT License - see the LICENSE.md file for details.
- This project was inspired by the need for a basic real-time chat application for learning purposes.
Feel free to reach out if you have any questions or need further assistance. Happy chatting!



