Skip to content

Commit 504958c

Browse files
committed
added readme and license files
1 parent f4484d8 commit 504958c

4 files changed

Lines changed: 74 additions & 0 deletions

File tree

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Suraj Chauhan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
3+
# Basic Chat App
4+
5+
This is a real-time chat application built using WebSockets, allowing users to create or join chat rooms and exchange messages with other members in the same room.
6+
7+
## Features
8+
9+
- **Create or Join Rooms**: Users can either create a new chat room or join an existing one.
10+
- **Real-Time Messaging**: Messages are instantly shared with all members in the same room.
11+
- **Room Isolation**: Messages are not shared across different rooms.
12+
- **WebSockets for RTC**: Enables real-time communication without page refresh.
13+
14+
## Technologies Used
15+
16+
### Frontend:
17+
- **HTML, CSS, JavaScript**: For building a simple and responsive UI.
18+
- **GitHub Pages**: Used for hosting the frontend.
19+
20+
### Backend:
21+
- **Node.js & Express.js**: Handles server-side logic.
22+
- **Native HTTP Server**: Used alongside Express.js for efficient handling.
23+
- **WebSockets**: Enables real-time bidirectional communication.
24+
- **Render.com**: Used for hosting the backend.
25+
26+
## Deployment
27+
28+
- **Frontend**: Hosted on GitHub Pages - [Chat App Frontend](https://surajprojects.github.io/basic-chat-app)
29+
- **Backend**: Hosted on Render - [Chat App Backend](https://basic-chat-app-57al.onrender.com)
30+
31+
## Getting Started
32+
33+
To run the project locally:
34+
35+
For the frontend:
36+
37+
1. Clone this repository.
38+
2. Navigate to the frontend folder.
39+
3. Open `index.html` in your browser using serve npm package.
40+
41+
For the backend:
42+
43+
1. Navigate to the backend folder.
44+
2. Install dependencies using `npm run build`.
45+
3. Start the server with `npm run start`.
46+
4. The server runs on `http://localhost:3000`.
47+
48+
## License
49+
50+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
51+
52+
---

frontend/favicon.ico

15 KB
Binary file not shown.

frontend/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Basic Chat App</title>
88
<link rel="stylesheet" href="styles.css">
9+
<link rel="icon" href="favicon.ico" type="image/x-icon">
910
</head>
1011

1112
<body>

0 commit comments

Comments
 (0)