Buzzly is a simple, real-time random chat application that connects two users at a time. Built using Node.js, Express, and Socket.io, Buzzly allows users to chat anonymously without the need for login.
- Real-time chat with random users.
- No login required; users are assigned random anime names.
- Users can send messages and skip to find a new chat partner.
- Responsive design with a modern UI.
Follow these instructions to set up and run the project locally.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install dependencies:
npm install
-
Start the server:
node server.js
-
Open your browser and navigate to
http://localhost:3001
.
-
Server Configuration: The server runs on port
3001
. You can change this by modifying thePORT
environment variable in theserver.js
file. -
Ngrok (for public access):
- Install Ngrok from ngrok.com.
- Run Ngrok with the command:
ngrok http 3001
- Use the provided Ngrok URL to access your app publicly.
server.js
: The main server file that sets up the Express server and Socket.io.public/index.html
: The HTML file for the chat interface.public/styles.css
: The CSS file for styling the chat interface.public/script.js
: The JavaScript file that handles client-side logic and Socket.io communication.sounds/noti.mp3
: The sound effect for receiving a message.
- Connect to Chat: When the page loads, users are automatically connected to the chat.
- Send Message: Type a message and click the "Send" button or press Enter.
- Skip: Click the "Skip" button to disconnect and wait for a new chat partner.
- User Not Connecting: Ensure the server is running and Ngrok (if used) is properly configured.
- Error Messages: Check the server logs for errors and ensure the server and client are using the correct port.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or issues, please open an issue on the GitHub repository or contact the maintainer at [[email protected]].