This example include an API with a basic CRUD. Integration with a AzureSQL.
- Create server in server.js file.
- Create routing in separate file for any endpoints.
- Create controllers for recibe the request.
- Create a service with integration with AzureSQL use package "mssql".
- Create a config file with params to connection BD.
This example is developed with ECMAScript 5.
Install all the dependencies for the project.
npm install
Runs a development server at https://localhost:1337.
npm start
Execute with VS code debugger.
Important: Configure in config.js the connection for your bd:
Important: COnfigure the connection for your bd.:
var config = {
user: 'xxxxx',
password: 'xxxxx',
server: 'xxxxx',
database: 'xxxxx',
options:
{
encrypt: true,
}
}