Skip to content

nfanjul/workshopNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop Nodejs

This example include an API with a basic CRUD. Integration with a AzureSQL.

  1. Create server in server.js file.
  2. Create routing in separate file for any endpoints.
  3. Create controllers for recibe the request.
  4. Create a service with integration with AzureSQL use package "mssql".
  5. Create a config file with params to connection BD.

This example is developed with ECMAScript 5.

1. Installation

Install all the dependencies for the project.

npm install

2. Develop

Runs a development server at https://localhost:1337.

npm start

3. Develop in VS Code

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,
    }
}

About

Workshop nodejs + AzureSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors