https://github.com/asib11/chat-application
chat application realtime update using nodejs
https://github.com/asib11/chat-application
ejs-templates expressjs mongodb mongoose multer nodejs socket-io
Last synced: 3 months ago
JSON representation
chat application realtime update using nodejs
- Host: GitHub
- URL: https://github.com/asib11/chat-application
- Owner: asib11
- Created: 2025-01-24T16:47:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-07T13:15:12.000Z (over 1 year ago)
- Last Synced: 2025-02-07T13:32:16.098Z (over 1 year ago)
- Topics: ejs-templates, expressjs, mongodb, mongoose, multer, nodejs, socket-io
- Language: JavaScript
- Homepage: https://chat-application-pink-tau.vercel.app/
- Size: 238 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chat-application
## Initial package install for this project
```
npm i express dotenv ejs mongoose multer cookie-parser express-validator jsonwebtoken bcrypt http-errors cross-env
```
### Setup existing nodejs for
NPM
```
npm i
```
or YARN
```
yarn install
```
## Some important resource
### multer error handling
https://www.npmjs.com/package/multer
### validateJs use for validation
https://validatejs.org/#utilities
## Realtime Chat and some design
```
npm install socket.io moment
```
## Deploy Vercel
```
{
"version": 2,
"builds": [
{
"src": "app.js",
"use": "@vercel/node",
"config": {
"includeFiles": [
"views/**", "public/**"
]
}
}
],
"routes": [
{
"src": "/(.*)",
"dest": "app.js",
"methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
"headers": {
"Access-Control-Allow-Origin": "*"
}
}
]
}
```