A simple real-time chat application built with Express.js, Socket.io, and TailwindCSS.
- Guest chatting (no login required)
- Chat room links for inviting others
- Real-time messaging
- User presence indicators
- Simple and clean UI
-
Clone this repository:
git clone https://github.com/AticMatic/SimpleChat.git cd SimpleChat
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory with the following content:PORT=3000
-
Start the server:
npm start
For development with auto-restart:
npm run dev
-
Access the application at
http://localhost:3000
- Visit the homepage
- Click "Create New Chat Room"
- Enter your display name
- Share the URL with others to invite them
- Visit the homepage
- Enter the room ID in the "Join Existing Room" field
- Click "Join"
- Enter your display name
- Start chatting!
- Backend: Node.js, Express
- Frontend: TailwindCSS, EJS templates
- Real-time Communication: Socket.io
- Other: UUID for room ID generation
simple-chat/
├── package.json
├── server.js
├── .env
├── public/
│ ├── css/
│ │ └── style.css
│ └── js/
│ └── main.js
└── views/
├── index.ejs
└── chat.ejs
To deploy this application to a production environment, consider using platforms like:
- Heroku
- Vercel
- Render
- Railway
Remember to set the appropriate environment variables in your hosting platform.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.