https://github.com/danrotaru/node_chat
Nodejs realtime chat (WebSocket, MySQL, Express)
https://github.com/danrotaru/node_chat
Last synced: 3 months ago
JSON representation
Nodejs realtime chat (WebSocket, MySQL, Express)
- Host: GitHub
- URL: https://github.com/danrotaru/node_chat
- Owner: DanRotaru
- Created: 2021-11-29T08:57:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T21:05:53.000Z (over 4 years ago)
- Last Synced: 2023-06-16T11:36:21.115Z (about 3 years ago)
- Language: HTML
- Size: 1.47 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real time chat on NodeJS (Express + MYSQL)
Real time char collaboration on nodejs
## Used stack:
1. Express
2. WebSocket
3. MySQL
## Init
First install all dependencies
```
npm i
```
## Config database
You need to write your database details. Upload file `db.sql` in your database and in `/config/db.js` change database name, user, password..
```javascript
var conn = mysql.createConnection({
host: 'localhost',
user: 'root',
password: '',
database: 'node_chat'
});
```
Done. Now just run it
```
npm start
```
