Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cptcr/chat-app
https://github.com/cptcr/chat-app
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cptcr/chat-app
- Owner: cptcr
- License: mit
- Created: 2024-05-21T09:47:43.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-05-21T17:07:07.000Z (7 months ago)
- Last Synced: 2024-07-02T19:11:29.156Z (6 months ago)
- Language: JavaScript
- Homepage: https://chat-app-ten-sigma-81.vercel.app
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
Chat App
A simple chat application built with Node.js, Express, Socket.io, and EJS.
Features
- User authentication (signup and login)
- Add friends by username
- Send and receive friend requests
- Real-time messaging
- Dark mode toggle
- Persistent data storage using JSON files
Installation
- Clone the repository:
git clone https://github.com/toowake/chat-app.git
cd chat-app
- Install dependencies:
npm install
- Start the server:
npm start
- Open your browser and go to http://localhost:3000.
Project Structure
chat-app/
├── public/
│ ├── style.css
│ └── script.js
├── views/
│ ├── partials/
│ │ ├── header.ejs
│ │ ├── footer.ejs
│ ├── login.ejs
│ ├── signup.ejs
│ └── chat.ejs
├── controllers/
│ ├── authController.js
│ ├── chatController.js
│ ├── friendController.js
├── models/
│ ├── userModel.js
│ ├── messageModel.js
│ ├── requestModel.js
├── routes/
│ ├── authRoutes.js
│ ├── chatRoutes.js
│ ├── friendRoutes.js
├── middlewares/
│ ├── authMiddleware.js
├── utils/
│ ├── fileUtils.js
│ ├── logger.js
├── data/
│ ├── users.json
│ ├── messages.json
│ ├── requests.json
├── server.js
├── package.json
└── README.md
License
This project is licensed under the MIT License - see the LICENSE file for details.