Convert any Microsoft SQL Server to CRUD API using NodeJS. You can use it to Create, Read, Update or Delete data from any tables, Getting data from views.
$ npm i
You must add you SQL Server login credentials in the file '/db/connect.js'.
...
// config for your database
var config = {
user: 'USERNAME',
password: 'PASSWORD',
server: 'HOST',
database: 'DB_NAME',
trustServerCertificate: true
};
...
$ npm start
This Postman file contains a demo that using all CRUD operations for this SQL table:
CREATE TABLE Persons (
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);