Posts

Showing posts from February, 2020
Server.js-file /**  * Module dependencies.  */ 'use strict'; var express = require('express'); var http = require('http'); var path = require('path'); var app = express(); var routes = require('./config/routeConfig'); var sql = require('./config/connectionConfig'); var sqlTableType = require('./config/sqlTableTypeConfig'); var utils = require('./public/App/utils'); var sqlUtils = require('./public/App/sqlUtils'); // cross domain setup const cors = require('cors'); const corsOptions = {     origin: '*' } app.use(cors(corsOptions)); // all environments app.set('port', process.env.PORT || 3000); app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'jade'); app.use(express.favicon()); app.use(express.logger('dev')); app.use(express.json()); app.use(express.urlencoded()); app.use(express.methodOverrid

InterView Question

Type Script: Note : need to assign value to variable var/let before use.other wise it will give compile time error 1. What is difference between Let and Var. Var variable have globaly scope. example: var x:string="global"; { var x:string="local"; } console.log(x); output: local now var variable have latest assigned value (either local or global block). Let variable have scope according to block. let x:string="global"; { var x:string="local"; } console.log(x); output: global Now let variable 's local block's value does not change the global value but in var  variable 's local block's value is change the global value. We can not redeclare the let varibale again in same block but var can be declare many times. the  let  variable will not be added to the global window object. if let is decalre inside a block , we can not acces outside that block. it will give undefined compile time error. but var ca

Concepts

Image
Security Concepts: 1. Active Directory Authentication 2. Azure Active Directory Authentication 3. Click Once Security-> Project solution properties-> singing->Create test certificate-.Enable Click Once Security Web API: Web API is a programming interface/application type that provides communication or interaction between software applications. Web API is often used to provide an interface for web sites and client applications to have data access. Web APIs can be used to access data from a database and save data back to the database.  Web API as the name suggests, is an API over the web which can be accessed using HTTP protocol. It is a concept and not a technology. ASP.NET Web API The ASP.NET Web API is an extensible framework for building HTTP based services that can be accessed in different applications on different platforms such as web, windows, mobile etc.  It is like a webservice or WCF service but the exception is that it only supports HTTP pr