mirror of
https://github.com/sstent/node.git
synced 2026-01-25 22:52:07 +00:00
27 lines
535 B
Markdown
27 lines
535 B
Markdown
### Author: Alexander Luksidadi
|
|
### Tutorial URL: http://blog.luksidadi.com/mysql-nodejs-socketio-tutorial/
|
|
|
|
Description:
|
|
How to call mysql query from Nodejs / SocketIO
|
|
|
|
Tags: nodejs, socketio, mysql
|
|
|
|
### installation:
|
|
- install nodejs (nodejs.org)
|
|
- install npm (npmjs.org)
|
|
- install socketio (socket.io)
|
|
- install node-mysql (https://github.com/felixge/node-mysql)
|
|
|
|
### run this command in your terminal:
|
|
```
|
|
$node app.js &
|
|
```
|
|
|
|
### open in your browser:
|
|
```
|
|
http://localhost:3000/
|
|
```
|
|
|
|
visit my blog:
|
|
http://blog.luksidadi.com
|