API of a chat app build on MERN
✨ TailwindCSS + Daisy UI
🔐 Authentication & Authorization with JWT
💬 Real-time messaging with Socket.io
🚀 Online user status
🔗 Global state management with Zustand
🐞 Error handling both on server and client side
git clone https://github.com/milan-sony/api_chatapp.git
node version: >=18.0.0 <22.11.0
npm version: >=8.0.0 <10.9.0
mongodb connection
cloudinary account
npm install
Under the root directory make a file named .env
PORT = 3000
MONGODB_URL =
JWT_SECRET =
NODE_ENV = development
CLOUDINARY_CLOUD_NAME =
CLOUDINARY_API_KEY =
CLOUDINARY_API_SECRET =
npm run dev
POST /api/v1/user/signup
Parameter | Type | Description |
---|---|---|
fullName |
string |
Required |
email |
string |
Required |
password |
string |
Required |
POST /api/v1/user/login
Parameter | Type | Description |
---|---|---|
email |
string |
Required |
password |
string |
Required |
GET /api/v1/user/users
POST /api/v1/user/logout
PUT /api/v1/user/update_profile
GET /api/v1/user/check
GET /api/v1/message/id
POST /api/v1/message/send/id