nodejs-restapi-using-express-mysql icon indicating copy to clipboard operation
nodejs-restapi-using-express-mysql copied to clipboard

Nodejs Restful API for CRUD operation using MySQL

Nodejs Rest API Example Using ExpressJS and Mysql

I have created simple example to create RESTFul api for crud operation using mysql database.I have added following features into this source code,
  • Add Record using rest call into mysql database
  • Edit Record using rest call into mysql database
  • Delete Record using rest call into mysql database
  • Featch records using rest call into mysql database

how to create table in db

You need to craete 'test' database into mysql and import customer.sql table into your mysql database.

How to run nodejs application

copy index.js and package.json file into your nodejs project folder,

Open command line and cd to your above nodejs project folder

run 'npm install'

run 'node index.js'