Skip to content

Boilerplate app for building RESTful APIs in Node.js with express and MySQL integration.

Notifications You must be signed in to change notification settings

SamixDev/Node.js-MySQL-REST-API-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs-mysql-api-example

This is an example of building REST api with MySQL integration using Nodejs.

After creating your project please make sure you have those dependencies: "@mysql/xdevapi" "body-parser" "express" "mysql"

We will be using MySQL to connect to the database. I have already created a table in my database called "usertest" with columns "id", "name", "country" and "number" make sure "id" is auto-increment as i am not going to insert and update the id in the code.

Happy Coding :)

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy