/nodeJS_MySQL

Building a RESTful API with NodeJS and MySQL DB.

Primary LanguageJavaScript

Building a CRUD Application with MySQL and Node.JS

Route Method Type Description
/learners GET JSON Get all Learners data
/learners{id} GET JSON Get a single id's data
/learners POST JSON Insert new record into db
/learners PUT JSON Update new record into db
/learners{id} DELETE JSON Delete a single id's data

Resources

Creating package.json / index.js
npm init
npm i --s body-parser
npm i -g nodemon
Running this repository
npm install
nodemon index.js

nodemon

Consuming API

postman

MySQL Workbench

sql