This is an example of RESTful CRUD in NodeJS with MySQL database
*for newbies : Clone or download zip to your machine then hit this :
cd MySQL_CRUD
then
npm install
server.js
host: 'localhost',
user: 'root',
password : 'root',
port : 3306, //port mysql
database:'nodedb'
You're gonna need to create a DB named 'test' or whatever you name it.