This is an example of CRUD in Node.js and mySQL.
cd CURD-Node-express-mysql-using-AJAX
then
npm install
server.js
host: 'localhost',
user: 'root',
password : 'root',
port : 3306, //port mysql
database:'test'
You're gonna need to create a DB named 'test' or whatever you name it, import test_db.sql
And type: localhost:3000/api/user