Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cptcr/chat-app


https://github.com/cptcr/chat-app

Last synced: about 2 months ago
JSON representation

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



  1. Clone the repository:


git clone https://github.com/toowake/chat-app.git

cd chat-app


  1. Install dependencies:


npm install


  1. Start the server:


npm start


  1. 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.