MySQL , Express-JS , NodeJS merged together to create a RESFful server.
-
Restore database using
customer.sqlfile to DBtest. -
( Optional ) change the credentials of MySQL-DB ( in index.js ) .
-
$
npm install -
$
node index.js -
Hit
http://localhost:33000/customer( you should see a JSON array of customers' data )
- Run server in background using command $
nohup node index.js &