restapiexample / nodejs-restapi-using-express-mysql

Nodejs Restful API for CRUD operation using MySQL

Home Page:http://www.restapiexample.com/rest-api-tutorial/create-rest-api-using-node-js-mysql-express/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

Nodejs Restful API for CRUD operation using MySQL

http://www.restapiexample.com/rest-api-tutorial/create-rest-api-using-node-js-mysql-express/


Languages

Language:JavaScript 100.0%