Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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 :)

AltStyle によって変換されたページ (->オリジナル) /