nodejs/angularjs for .NET Developers

G aka Gaurav Saxena, Bennett Adelson, Cleveland

August 18, 2015

whoami

nodejs/angularjs for .NET Developers

nodejs - what

nodejs - why

nodejs - community

nodejs - foundation members

nodejs - adopters

nodejs - how are enterprises adopting it?

what type of apps can you make with nodejs?

nodejs - compared with other servers

Other Javascript server side technologies?

nodejs - not a node program

var result = db.query("select ... ");
//use result

nodejs - yep, this is node now

db.query("select ... ", function(result){
    //use result
});

nodejs - old news

puts("enter your name");
var name = gets();
puts("name: " + name);

nodejs - CULTURE shift 2015

puts("enter your name");
gets(function (name){
    puts("Name: " + name);
});

nodejs - event loop

nodejs - npm

nodejs - npm

{
    "name": "test",
    "version": "1.0.0",
    "description": "test",
    "main": "app.js",
    "keywords":[
        "demo"
    ],
    "author": "dev <dev@company.com"> ()",
    "license": "ISC"
}

nodejs - on windows

choco install nodejs.install

nodejs - what you get

nodejs - what you get

nodejs - takehome

nodejs - demo

angularjs in brief

angularjs - concepts

angularjs - directives

<body ng-app>
    <input ng-model="name">
    <p>
        Hello {{name}}
    </p>
</body>

angularjs - data binding

angularjs - scope

angularjs - controllers

angularjs - controllers

<script>
function TodoController($scope){
    $scope.todos = [
        { name: 'todo1', completed: true},
        { name: 'todo2', completed: false}
    ];
}
</script>

angularjs - controllers

<body ng-app>
    <div ng-controller="TodoController">
        <ul>
            <li ng-repeat="todo in todos">
                <input type="checkbox" ng-model="todo.completed">
                    {{ todo.name }}
            </li>
        </ul>
    </div>
</body>

angularjs - modules

angularjs - demo

A word about ASP.NET 5

Questions?

Thanks for your time!

References