Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taiseen/chat-app-mern-stack
Chat App | MERN Stack
https://github.com/taiseen/chat-app-mern-stack
express-js node-js socket-io
Last synced: about 1 month ago
JSON representation
Chat App | MERN Stack
- Host: GitHub
- URL: https://github.com/taiseen/chat-app-mern-stack
- Owner: taiseen
- Created: 2024-10-15T21:46:08.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-18T19:03:33.000Z (about 1 month ago)
- Last Synced: 2024-10-18T20:49:49.244Z (about 1 month ago)
- Topics: express-js, node-js, socket-io
- Language: JavaScript
- Homepage:
- Size: 1.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> 13 - Oct - 2024
# Chat App | MERN Stack
## Backend endpoints:-
| No| Context & File Link | Method | Api Endpoint |
| --| ------------------------------| ------- | ---------------------------|
| 1 | [Registration][registration] | ➡️ POST | /api/v1/auth/`register` |
| 2 | [Login][userLogin] | ➡️ POST | /api/v1/auth/`login` |
| 3 | [Logout][userLogout] | ➡️ POST | /api/v1/auth/`logout` |
| 4 | [Get Users][getUsers] | GET ⬅️ | /api/v1/`users/` |
| 5 | [Get Message][getSms] | GET ⬅️ | /api/v1/`messages/:id` |
| 6 | [Send Message][sendSms] | ➡️ POST | /api/v1/`messages/send/:id`|[registration]: ./backend/src/modules/auth/controllers/registration.js
[userLogin]: ./backend/src/modules/auth/controllers/login.js
[userLogout]: ./backend/src/modules/auth/controllers/logout.js
[getUsers]: ./backend/src/modules/user/controllers/getUsersForSidebar.js
[getSms]: ./backend/src/modules/messages/controllers/getMessage.js
[sendSms]: ./backend/src/modules/messages/controllers/sendMessage.js```
├─── auth
│ ├─── register
│ ├─── login
│ └─── logout
│
├─── users
│ └─── /
│
└─── messages
├─── /:id
└─── /send/:id
```
## To run backend properly, setup the `.env` file
```jsx
# 🟢 To run this project... these following values will be required...MONGODB_URI = *******
CLIENT_URL = *******
JWT_NAME = *******
JWT_SECRET = *******
JWT_EXPIRES_IN = *******
```
## Backend run in local:-
```
cd backend
```
```
yarn dev
```## Frontend run in local:-
```
cd frontend
```
```
yarn dev
```
## NodeJs | Backend Basic Data Flow...