What is Node.js? Tim Davis Director, The Turtle Partnership Ltd

Size: px
Start display at page:

Download "What is Node.js? Tim Davis Director, The Turtle Partnership Ltd"

Transcription

1 What is Node.js? Tim Davis Director, The Turtle Partnership Ltd

2 About me Co-founder of The Turtle Partnership Working with Notes and Domino for over 20 years Working with JavaScript technologies and frameworks almost as long Node, Angular, React, Material Design, Electron, Mongo, Couch, Pouch, Google Cloud Platform

3 So, what is Node.js? It is a fully programmable server engine You code it using Javascript Most of the time it is used as a web server It can serve web pages run APIs be a networked application do IoT stuff be containerized

4 Why are we interested? Will be integrated into Domino 10 Allows access to Domino data from Node easily Parallel development path Extend existing Domino apps Mobile New websites Microservices Other platforms

5 Why use Node to do this? It is a hugely popular web platform Part of the MEAN/MERN development stacks Easy to add modules to do different things Lots of resources and support out there JavaScript, so works well with UI frameworks (Angular, React, etc) NoSQL datastores (MongoDB, CouchDB, etc) Domino 10 will be a JavaScript NoSQL datastore

6 Full Stack What is Full Stack development? It is using the same basic technology from the backend data up to the UI Here we are talking about using JavaScript. Typically this means a JavaScript UI framework, such as Angular or React, with a JSON datastore on the backend JavaScript all the way down MEAN/MERN and now DEAN/NERD

7 Can I do JavaScript? If you have used JavaScript in Domino web forms maybe client-side validation scripts or some JQuery or in XPages server-side JavaScript then you will be fine with JavaScript in Node If you ve used LotusScript, similar but different syntax e.g. variables, arrays, loops, functions but has new stuff which is really great :-)

8 What about Domino 10? IBM/HCL will provide a domino connector module Add this to your Node app Can read and update your Domino databases Will use a new grpc interface into Domino server fast, but not the HTTP task Can use the upcoming query language DGQF There will be an authentication solution, too IAM, OAuth

9 But hey, enough of my yakkin Where can I get it? How do I run it?

10 Download the installer Go to the Node.js website Download the installer Run the installer This installs two separate packages Node.js runtime npm package manager (npm is used to install add-on modules)

11 Run it! Open a terminal or command window, and type node Opens a node shell (Press ctrl-c twice to close the shell) Doesn t do very much At its core this is all Node is, an engine/interpreter To get it to do anything interesting we need some JavaScript

12 Our first Node server Lets make a simple Node web server Start with a project folder to hold everything Create an empty JavaScript source file in it server.js Open this in your favorite code editor Mine is Visual Studio Code Others suggest Webstorm Start writing some code

13 Adding HTTP This is going to be a web server, so we need to handle HTTP requests. Node has a built-in HTTP module, so let s add this in We do this with the 'require' command const http = require('http'); We can use 'require' to add any other modules we may need

14 Create a server object Now our Node app knows how to handle HTTP, let s create a Node HTTP server const server = http.createserver( ); This will take a function as a parameter This function is the listener which tells it what to do when it receives a request

15 Add a listener const server = http.createserver((req, res) => { res.statuscode = 200; res.setheader('content-type', 'text/plain'); res.end('hello World!\n'); }); Don t worry about the strange arrow =>, that is just a different way of saying function, more on this later This acts on the request req and the response res Status 200 is 'success OK' Tells browser to expect some text Adds our text and tells the server to send the response

16 Tell it to start listening const hostname = ' '; const port = 3000; server.listen(port, hostname, () => { console.log(`server running at {hostname}:${port}/`); }); This tells the server to listen on port 3000 and prints a message to the Node console This is all we need, only 11 lines of code.

17 Run our server Back in terminal or command window In our project folder, where server.js is, type node server.js The server starts running You will see the message displayed in the terminal or command window Browse to it on It says Hello World!

18 Let s build a basic app We will modify our simple web server into the basis of a web app It will still respond with the Hello World message, but from this base it can become anything Do this by adding in the Express module We will use npm to structure our app We will make our app standalone, so it can be portable and we can control versions Even fewer lines of code!

19 What is Express? Add-on module More sophisticated web functions Also hugely popular (it is the E in MEAN/MERN) Many other modules are built to integrate with it Including the Domino 10 connector module

20 Turning our server into an app We use the npm package manager It does almost all the work for us Start by initializing our app npm init This prompts for app name, etc, can just accept defaults Creates a package.json file Lists our server.js Start script is 'node server.js'

21 Install Node into our project We will install Node locally so everything is contained in one folder (We installed it globally from our download earlier) Install by typing npm install node Creates new folder node_modules

22 Can run server using npm Uses the package.json config We type npm start It runs the 'start' script in the package.json Notice this is the 'node server.js' command we used before

23 Adding Express Same as for all installs npm install express Automatically installs all the various modules that Express uses Adds 'express' to the dependencies in the package.json

24 Modify our server.js Replace Node's http module with express const express = require('express') Instead of the http server, we create an Express app const app = express()

25 Add a route Routes are pattern matches for incoming URIs Sort of like Domino Web Site Rules Can have multiple routes to do different things Our route will listen for a regular browser 'get' request app.get('/', (req, res) => { res.send('hello World!') } ) The '/' means the root of our web server

26 Tell app to start listening Basically the same as the http version app.listen(port, hostname, () => { }); console.log(`server running at {hostname}:${port}/`); Only 10 lines of code! Run is same as before npm start

27 So what is different? Isn't this just the same Hello World site? Now we have an app, with middleware routes For our processes and business logic The basic structure of any kind of web server, or networked app, or microservice, or API

28 What else can we do? Get and update data Display a web page e.g. Angular or React front end Will be able to use the Domino 10 connector npm install dominodb

29 Display a web page We can display static files from the file system These could be an Angular or React app Put these in a 'public' sub folder Default is index.html Add a route pointing to this sub folder app.use(express.static( dirname + '/public')); Requests hitting the root of the server '/' are redirected here

30 Catch-all route We can add a catch-all route after our static route, or any other routes we may use This will handle any other URLs people use and avoids 404 errors. We use a '/*' pattern to match anything app.get('/*', (req, res) => { }) res.send('another part of the site') The '/' is first redirected by our static route, anything else will be caught by this route

31 What about Domino? Install the Domino DB connector npm install dominodb Will be able to use code something like this in your routes: const { domserver } = require('domino-db'); domserver(serverconfig).then( async (server) => { const db = await server.usedatabase(dbconfig); const docs = await db.bulkreaddocuments(query); } The query can be the new Domino General Query Framework NDA, but for more on this, see John Curtis' session Weds 11am

32 More on DominoDB "Demo and Deep Dive: Domino General Query Facility and DominoDB NPM" John Curtis, HCL Collaborative Workflow Platform, Weds 11:00-11:45

33 That's it What follows is more detail about Javascript JSON let and const Arrow functions Async behaviour No time for it now, but you can read it later Blog:

34 What else do we need to know? That is a basic Node app built Now I want to talk about some general JavaScript terms and concepts JavaScript is improving all the time with new features that are used in Node You will see them in examples and articles Knowing about these will make your life easier when starting out

35 JSON All the data in Node is JSON JavaScript Object Notation Hierarchical/nested like XML but much more readable Easily converted to and from strings Name/value pairs, "name":"value" Separated by commas Objects in curly brackets { } Arrays in square brackets [ ]

36 Sample JSON let myjson = { "name":"tim", "myarray": [ { "itemid":"0001" }, { "itemid":"0002" }, { "itemid":"0003" } ], "quantity":5 }

37 Using JSON Can be passed around, used as parameters Can reference it by name and use dot notation to access or update properties let myjson = {}; myjson.name = "Bob"; dosomethingwith( myjson.myarray[2].itemid ); const mystring = JSON.stringify(myJson);

38 NoSQL NoSQL is used to describe databases that do not use table-based SQL data. Data is stored in documents and accessed in collections using queries. Just like Domino! Usually uses JSON format. With v10, Domino becomes a proper NoSQL datastore able to fit in a full JS stack.

39 let and const These are almost always better than 'var' 'var' applies to whole enclosing function 'let' is like 'var' but the variable is limited to the current code block, i.e. inside the curly brackets {} Can't let an existing let Helps avoid confusion 'const' is for values that will not change Get error if try to set another value

40 Arrow functions => The arrow is similar to the traditional 'function', so (arg1, arg2) => {..code.. } kind of works like: function ( arg1, arg2 ) {..code.. } Difference is when you use 'this' with 'function', the 'this' is what calls the function with '=>', the 'this' is from outside what calls the function (More or less, it's worth reading up on) Great when passing functions as parameters in Node modules, where you want 'this' to be the overall node app

41 Async JavaScript, and Node especially, are very very asynchronous. So what is asynchronous? 'Things do not happen in order' Async functions go off and do their thing and the rest of the code continues. You may have already used async in Domino web forms when making AJAX calls to web agents Great for loading rest of page while you look up something Annoying in code

42 Async example function getdataasync() { do a lookup console.log("got data"); } console.log("start"); getdataasync(); console.log("finish"); The output is: start finish got data

43 Callbacks The original way async functions allowed you to handle them: myasyncfunction( callback ) { } Callback is a function that is called when the async function finishes. It usually receives the result of the async function as a parameter You can get a confusing chain of callbacks if you want to do async stuff with the results

44 Promises More readable Passes results to next function in a chain with '.then' doasync1().then( (result1) => { return getasync2(result1); }).then( (result2) => { return getasync3(result2); }).then( (result3) => { etc } ).catch( (error) => { handle error } ) You can create your own Promise function by wrapping your async code with 'resolve' and 'reject'

45 Promise.all How to handle multiple async processes in order? E.g. collection of documents, each of which needs handling in an async way Array of promises, then Promise.all to run them in order var promises = []; for (var i = 0; i < collection.length; i++) { promises.push( doasyncstuff(collection[i]) ); } Promise.all(promises).then( function (results) { //'results' is array of results in order }

46 Async / Await Latest way of handling async functions async function doasyncstuff() { const value1 = await asyncfunction1(); const value2 = await asyncfunction2( value1 ); } Avoids chains of callbacks or.thens Can use regular try/catch for error handling Can await your own promise functions

47 Summary What Node is How to build a simple Node app Why it is important for Domino 10 Key JavaScript concepts

48 Questions Blog: Demo and Deep Dive: Domino General Query Facility and DominoDB NPM. John Curtis, HCL Collaborative Workflow Platform, Wednesday July 25, :00 AM to 11:45 AM

We are assuming you have node installed!

We are assuming you have node installed! Node.js Hosting We are assuming you have node installed! This lesson assumes you've installed and are a bit familiar with JavaScript and node.js. If you do not have node, you can download and install it

More information

Getting Started With NodeJS Feature Flags

Getting Started With NodeJS Feature Flags Guide Getting Started With NodeJS Feature Flags INTRO We ve all done it at some point: thrown a conditional around a piece of code to enable or disable it. When it comes to feature flags, this is about

More information

Backend Development. SWE 432, Fall Web Application Development

Backend Development. SWE 432, Fall Web Application Development Backend Development SWE 432, Fall 2018 Web Application Development Review: Async Programming Example 1 second each Go get a candy bar Go get a candy bar Go get a candy bar Go get a candy bar Go get a candy

More information

Node.js. Node.js Overview. CS144: Web Applications

Node.js. Node.js Overview. CS144: Web Applications Node.js Node.js Overview JavaScript runtime environment based on Chrome V8 JavaScript engine Allows JavaScript to run on any computer JavaScript everywhere! On browsers and servers! Intended to run directly

More information

Persistence. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Persistence. SWE 432, Fall 2017 Design and Implementation of Software for the Web Persistence SWE 432, Fall 2017 Design and Implementation of Software for the Web Today Demo: Promises and Timers What is state in a web application? How do we store it, and how do we choose where to store

More information

Client Side JavaScript and AJAX

Client Side JavaScript and AJAX Client Side JavaScript and AJAX Client side javascript is JavaScript that runs in the browsers of people using your site. So far all the JavaScript code we've written runs on our node.js server. This is

More information

NoSQL & Firebase. SWE 432, Fall Web Application Development

NoSQL & Firebase. SWE 432, Fall Web Application Development NoSQL & Firebase SWE 432, Fall 2018 Web Application Development Review: Nouns vs. Verbs URIs should hierarchically identify nouns describing resources that exist Verbs describing actions that can be taken

More information

NODE.JS SERVER SIDE JAVASCRIPT. Introduc)on Node.js

NODE.JS SERVER SIDE JAVASCRIPT. Introduc)on Node.js NODE.JS SERVER SIDE JAVASCRIPT Introduc)on Node.js Node.js was created by Ryan Dahl starting in 2009. For more information visit: http://www.nodejs.org 1 What about Node.js? 1. JavaScript used in client-side

More information

Microservices with Node.js

Microservices with Node.js Microservices with Node.js Objectives In this module we will discuss: Core Node.js concepts Node Package Manager (NPM) The Express Node.js package The MEAN stack 1.1 What is Node.js? Node.js [ https://nodejs.org/

More information

CS193X: Web Programming Fundamentals

CS193X: Web Programming Fundamentals CS193X: Web Programming Fundamentals Spring 2017 Victoria Kirst (vrk@stanford.edu) CS193X schedule Today - MongoDB - Servers and MongoDB Friday - Web application architecture - Authentication MongoDB installation

More information

Backend Development. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Backend Development. SWE 432, Fall 2017 Design and Implementation of Software for the Web Backend Development SWE 432, Fall 2017 Design and Implementation of Software for the Web Real World Example https://qz.com/1073221/the-hackers-who-broke-into-equifax-exploited-a-nine-year-old-security-flaw/

More information

Tools. SWE 432, Fall Design and Implementation of Software for the Web

Tools. SWE 432, Fall Design and Implementation of Software for the Web Tools SWE 432, Fall 2016 Design and Implementation of Software for the Web Today Before we can really make anything, there s a bunch of technical stuff to get out of the way Tools make our lives so much

More information

CS193X: Web Programming Fundamentals

CS193X: Web Programming Fundamentals CS193X: Web Programming Fundamentals Spring 2017 Victoria Kirst (vrk@stanford.edu) CS193X schedule Today - Middleware and Routes - Single-page web app - More MongoDB examples - Authentication - Victoria

More information

Persistence & State. SWE 432, Fall 2016 Design and Implementation of Software for the Web

Persistence & State. SWE 432, Fall 2016 Design and Implementation of Software for the Web Persistence & State SWE 432, Fall 2016 Design and Implementation of Software for the Web Today What s state for our web apps? How do we store it, where do we store it, and why there? For further reading:

More information

Full Stack boot camp

Full Stack boot camp Name Full Stack boot camp Duration (Hours) JavaScript Programming 56 Git 8 Front End Development Basics 24 Typescript 8 React Basics 40 E2E Testing 8 Build & Setup 8 Advanced JavaScript 48 NodeJS 24 Building

More information

Web Application Development

Web Application Development Web Application Development Produced by David Drohan (ddrohan@wit.ie) Department of Computing & Mathematics Waterford Institute of Technology http://www.wit.ie SERVER SIDE JAVASCRIPT PART 1 Outline 1.

More information

Lab 1 - Introduction to Angular

Lab 1 - Introduction to Angular Lab 1 - Introduction to Angular In this lab we will build a Hello World style Angular component. The key focus is to learn how to install all the required code and use them from the browser. We wont get

More information

JavaScript Fundamentals_

JavaScript Fundamentals_ JavaScript Fundamentals_ HackerYou Course Syllabus CLASS 1 Intro to JavaScript Welcome to JavaScript Fundamentals! Today we ll go over what programming languages are, JavaScript syntax, variables, and

More information

Unifer Documentation. Release V1.0. Matthew S

Unifer Documentation. Release V1.0. Matthew S Unifer Documentation Release V1.0 Matthew S July 28, 2014 Contents 1 Unifer Tutorial - Notes Web App 3 1.1 Setting up................................................. 3 1.2 Getting the Template...........................................

More information

Simple AngularJS thanks to Best Practices

Simple AngularJS thanks to Best Practices Simple AngularJS thanks to Best Practices Learn AngularJS the easy way Level 100-300 What s this session about? 1. AngularJS can be easy when you understand basic concepts and best practices 2. But it

More information

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 07 Tutorial 2 Part 1 Facebook API Hi everyone, welcome to the

More information

JSON Evaluation. User Store

JSON Evaluation. User Store Overview Demo following technologies: JSON Node Package Manager npm Node modules. Very brief introduction to asynchronous programming using async and await. Mongo db JSON JavaScript Object Notation. Inductive

More information

Module 6 Node.js and Socket.IO

Module 6 Node.js and Socket.IO Module 6 Node.js and Socket.IO Module 6 Contains 2 components Individual Assignment and Group Assignment Both are due on Wednesday November 15 th Read the WIKI before starting Portions of today s slides

More information

Quick Desktop Application Development Using Electron

Quick Desktop Application Development Using Electron Quick Desktop Application Development Using Electron Copyright Blurb All rights reserved. No part of this book may be reproduced in any form or by any electronic or mechanical means including information

More information

Web Development for Dinosaurs An Introduction to Modern Web Development

Web Development for Dinosaurs An Introduction to Modern Web Development Web Development for Dinosaurs An Introduction to Modern Web Development 1 / 53 Who Am I? John Cleaver Development Team Lead at Factivity, Inc. An Introduction to Modern Web Development - PUG Challenge

More information

NodeJS and JavaScripteverywhere

NodeJS and JavaScripteverywhere NodeJS and JavaScripteverywhere Matthew Eernisse YOW Conference: December 2011 Who am I? Matthew Eernisse Work at Yammer @mde on Twitter What is JavaScript- everywhere? A list of stuff Ruby JavaScript

More information

JS Event Loop, Promises, Async Await etc. Slava Kim

JS Event Loop, Promises, Async Await etc. Slava Kim JS Event Loop, Promises, Async Await etc Slava Kim Synchronous Happens consecutively, one after another Asynchronous Happens later at some point in time Parallelism vs Concurrency What are those????

More information

Agenda. Introduce the Tale of Two developers. Domino Top Secret. Back to the Future with the Domino

Agenda. Introduce the Tale of Two developers. Domino Top Secret. Back to the Future with the Domino Agenda Introduce the Tale of Two developers Domino Top Secret Industry Scenario based demo and the reach of Domino Apps Back to the Future with the Domino the Secure NOSQL Database with Node.js Hint: June

More information

Serverless Single Page Web Apps, Part Four. CSCI 5828: Foundations of Software Engineering Lecture 24 11/10/2016

Serverless Single Page Web Apps, Part Four. CSCI 5828: Foundations of Software Engineering Lecture 24 11/10/2016 Serverless Single Page Web Apps, Part Four CSCI 5828: Foundations of Software Engineering Lecture 24 11/10/2016 1 Goals Cover Chapter 4 of Serverless Single Page Web Apps by Ben Rady Present the issues

More information

Ionic Tutorial. For Cross Platform Mobile Software Development

Ionic Tutorial. For Cross Platform Mobile Software Development About Ionic Tutorial For Cross Platform Mobile Software Development This Tutorial is for setting up a basic hybrid mobile application using the Ionic framework. The setup will be shown for both Mac and

More information

Extra Notes - Data Stores & APIs - using MongoDB and native driver

Extra Notes - Data Stores & APIs - using MongoDB and native driver Extra Notes - Data Stores & APIs - using MongoDB and native driver Dr Nick Hayward Contents intro install MongoDB running MongoDB using MongoDB Robo 3T basic intro to NoSQL connect to MongoDB from Node.js

More information

Paul Withers Intec Systems Ltd By Kind Permission of Matt White and Tim Clark

Paul Withers Intec Systems Ltd By Kind Permission of Matt White and Tim Clark XPages Blast Paul Withers Intec Systems Ltd By Kind Permission of Matt White and Tim Clark Lead Developer at Matt White Creators of IdeaJam and IQJam Creator of XPages101.net Founder member of the LDC

More information

DECOUPLING PATTERNS, SERVICES AND CREATING AN ENTERPRISE LEVEL EDITORIAL EXPERIENCE

DECOUPLING PATTERNS, SERVICES AND CREATING AN ENTERPRISE LEVEL EDITORIAL EXPERIENCE DECOUPLING PATTERNS, SERVICES AND CREATING AN ENTERPRISE LEVEL EDITORIAL EXPERIENCE Who we are and Why we are here? Saurabh Chugh Started Drupal journey in 2010 with Drupal 6, long journey with Drupal

More information

A Node.js tutorial by Manuel Kiessling

A Node.js tutorial by Manuel Kiessling 1 of 23 9/17/2013 3:09 PM A Node.js tutorial by Manuel Kiessling The aim of this document is to get you started with developing applications with Node.js, teaching you everything you need to know about

More information

Manoj Kumar- From Call back's hell to using Async Await: Automated testing with JavaScript

Manoj Kumar- From Call back's hell to using Async Await: Automated testing with JavaScript Manoj Kumar- From Call back's hell to using Async Await: Automated testing with JavaScript ManojKumar: Welcome everyone again. We are here to see about a primer on Selenium WebDriver JavaScript and Protractor

More information

Tuesday, January 13, Backend III: Node.js with Databases

Tuesday, January 13, Backend III: Node.js with Databases 6.148 Backend III: Node.js with Databases HELLO AND WELCOME! Your Feels Lecture too fast! Your Feels Lecture too fast! Too many languages Your Feels Lecture too fast! Too many languages Code more in class

More information

Scaling DreamFactory

Scaling DreamFactory Scaling DreamFactory This white paper is designed to provide information to enterprise customers about how to scale a DreamFactory Instance. The sections below talk about horizontal, vertical, and cloud

More information

This tutorial discusses the basics of PouchDB along with relevant examples for easy understanding.

This tutorial discusses the basics of PouchDB along with relevant examples for easy understanding. About this Tutorial PouchDBis an open source in-browser database API written in JavaScript. It ismodelled after CouchDB a NoSQL database that powers npm. Using this API, we can build applications that

More information

5th April Installation Manual. Department of Computing and Networking Software Development Degree

5th April Installation Manual. Department of Computing and Networking Software Development Degree 5th April 2017 Installation Manual Department of Computing and Networking Software Development Degree Project name: Student: Student Number: Supervisor: MaaP (Message as a Platform) Chihabeddine Ahmed

More information

Running and Debugging Custom Components Locally

Running and Debugging Custom Components Locally Oracle Intelligent Bots TechExchange Sample. Running and Debugging Custom Components Locally Martin Deh, May 2018 With Oracle Intelligent Bots, each state in the dialog flow invokes a component to perform

More information

Google Drive: Access and organize your files

Google Drive: Access and organize your files Google Drive: Access and organize your files Use Google Drive to store and access your files, folders, and Google Docs anywhere. Change a file on the web, your computer, or your mobile device, and it updates

More information

Practical Node.js. Building Real-World Scalable Web Apps. Apress* Azat Mardan

Practical Node.js. Building Real-World Scalable Web Apps. Apress* Azat Mardan Practical Node.js Building Real-World Scalable Web Apps Azat Mardan Apress* Contents About the Author About the Technical Reviewer Acknowledgments Introduction xv xvii xix xxi Chapter 1: Setting up Node.js

More information

Using Code Templates in DDE by Julian Robichaux, panagenda originally published on socialbizug.org, July 2013

Using Code Templates in DDE by Julian Robichaux, panagenda originally published on socialbizug.org, July 2013 Using Code Templates in DDE by Julian Robichaux, panagenda originally published on socialbizug.org, July 2013 One of the freebies that came with integrating Domino Designer with the Eclipse platform (DDE)

More information

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. GraphQL

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. GraphQL i About the Tutorial GraphQL is an open source server-side technology which was developed by Facebook to optimize RESTful API calls. It is an execution engine and a data query language. This tutorial will

More information

EmberJS A Fitting Face for a D8 Backend. Taylor Solomon

EmberJS A Fitting Face for a D8 Backend. Taylor Solomon EmberJS A Fitting Face for a D8 Backend Taylor Solomon taylor.solomon @jtsolomon http://interactivestrategies.com 2 Years Ago 2 Years Ago URL Ember Data assumes a few things. - Your API format is JSON

More information

SAMPLE CHAPTER SECOND EDITION. Alex Young Bradley Meck Mike Cantelon. Tim Oxley Marc Harter T.J. Holowaychuk Nathan Rajlich MANNING WITH

SAMPLE CHAPTER SECOND EDITION. Alex Young Bradley Meck Mike Cantelon. Tim Oxley Marc Harter T.J. Holowaychuk Nathan Rajlich MANNING WITH SAMPLE CHAPTER SECOND EDITION Alex Young Bradley Meck Mike Cantelon WITH Tim Oxley Marc Harter T.J. Holowaychuk Nathan Rajlich MANNING Node.js in Action, Second Edition by Alex Young, Bradley Meck, Mike

More information

Chapter 1 - Development Setup of Angular

Chapter 1 - Development Setup of Angular Chapter 1 - Development Setup of Angular Objectives Key objectives of this chapter Angular Files and Dependencies Node.js Node package manager (npm) package.json Semantic version numbers Installing Angular

More information

This tutorial is intended to make you comfortable in getting started with the Firebase backend platform and its various functions.

This tutorial is intended to make you comfortable in getting started with the Firebase backend platform and its various functions. Firebase About the Tutorial Firebase is a backend platform for building Web, Android and IOS applications. It offers real time database, different APIs, multiple authentication types and hosting platform.

More information

Salvatore Rinzivillo VISUAL ANALYTICS

Salvatore Rinzivillo VISUAL ANALYTICS Salvatore Rinzivillo VISUAL ANALYTICS Announcment No lesson on March 5th We will meet on March 6th from 11 to 13 in Aula N1 DEVELOPMENT FRAMEWORK Objectives Setup a developing environment Install Node.js

More information

Exercise 1. Bluemix and the Cloud Foundry command-line interface (CLI)

Exercise 1. Bluemix and the Cloud Foundry command-line interface (CLI) V10.1 Student Exercises EXempty Exercise 1. Bluemix and the Cloud Foundry command-line interface (CLI) What this exercise is about In this exercise, you sign on to Bluemix and create an application. You

More information

Welcome to CS50 section! This is Week 10 :(

Welcome to CS50 section! This is Week 10 :( Welcome to CS50 section! This is Week 10 :( This is our last section! Final project dates Official proposals: due this Friday at noon Status report: due Monday, Nov 28 at noon Hackathon: Thursday, Dec

More information

Web API Lab folder 07_webApi : webapi.jsp your testapijs.html testapijq.html that works functionally the same as the page testapidomjs.

Web API Lab folder 07_webApi : webapi.jsp your testapijs.html testapijq.html that works functionally the same as the page testapidomjs. Web API Lab In this lab, you will produce three deliverables in folder 07_webApi : 1. A server side Web API (named webapi.jsp) that accepts an input parameter, queries your database, and then returns a

More information

Angular 2 Programming

Angular 2 Programming Course Overview Angular 2 is the next iteration of the AngularJS framework. It promises better performance. It uses TypeScript programming language for type safe programming. Overall you should see better

More information

Getting Started with IBM Bluemix Hands-On Workshop. Module 6a: Services

Getting Started with IBM Bluemix Hands-On Workshop. Module 6a: Services Hands-On Workshop Module 6a: Services Workshop overview In this workshop, you will: Create a Cloudant service that extends the Fizzbuzz application Create a user-defined service that is local to your

More information

AWS Lambda + nodejs Hands-On Training

AWS Lambda + nodejs Hands-On Training AWS Lambda + nodejs Hands-On Training (4 Days) Course Description & High Level Contents AWS Lambda is changing the way that we build systems in the cloud. This new compute service in the cloud runs your

More information

Introduction to GraphQL and Relay. Presenter: Eric W. Greene

Introduction to GraphQL and Relay. Presenter: Eric W. Greene Introduction to GraphQL and Relay Presenter: Eric W. Greene Welcome to the Webinar! Welcome to the webinar on GraphQL and Relay!!! We will review a few slides, then experiment with GraphQL and review GraphQL

More information

Guide - Deploying for Production. apiman Final

Guide - Deploying for Production. apiman Final Guide - Deploying for Production apiman 1.2.9.Final 1. Deployment Tooling for apiman... 1 2. Architecture Summary... 3 3. Database... 5 4. Elasticsearch... 7 5. Keycloak... 9 6. API Gateway... 11 6.1.

More information

Chapter 1 - Consuming REST Web Services in Angular

Chapter 1 - Consuming REST Web Services in Angular Chapter 1 - Consuming REST Web Services in Angular Objectives Key objectives of this chapter REST Overview Common Angular tasks for REST communication Using Angular to send various HTTP requests 1.1 REST

More information

a Very Short Introduction to AngularJS

a Very Short Introduction to AngularJS a Very Short Introduction to AngularJS Lecture 11 CGS 3066 Fall 2016 November 8, 2016 Frameworks Advanced JavaScript programming (especially the complex handling of browser differences), can often be very

More information

Java vs JavaScript. For Enterprise Web Applications. Chris Bailey IBM Runtime Technologies IBM Corporation

Java vs JavaScript. For Enterprise Web Applications. Chris Bailey IBM Runtime Technologies IBM Corporation Java vs JavaScript For Enterprise Web Applications Chris Bailey IBM Runtime Technologies 1 What Languages do you use? 120 Percentage of Audience 100 80 60 40 20 0 Java 2 JavaScript Both What Runtimes do

More information

Advance Mobile& Web Application development using Angular and Native Script

Advance Mobile& Web Application development using Angular and Native Script Advance Mobile& Web Application development using Angular and Native Script Objective:- As the popularity of Node.js continues to grow each day, it is highly likely that you will use it when you are building

More information

NODE.JS MOCK TEST NODE.JS MOCK TEST I

NODE.JS MOCK TEST NODE.JS MOCK TEST I http://www.tutorialspoint.com NODE.JS MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Node.js Framework. You can download these sample mock tests at

More information

c122mar413.notebook March 06, 2013

c122mar413.notebook March 06, 2013 These are the programs I am going to cover today. 1 2 Javascript is embedded in HTML. The document.write() will write the literal Hello World! to the web page document. Then the alert() puts out a pop

More information

This tutorial is meant for software developers who want to learn how to lose less time on API integrations!

This tutorial is meant for software developers who want to learn how to lose less time on API integrations! CloudRail About the Tutorial CloudRail is an API integration solution that speeds up the process of integrating third-party APIs into an application and maintaining them. It does so by providing libraries

More information

Warewolf User Guide 1: Introduction and Basic Concepts

Warewolf User Guide 1: Introduction and Basic Concepts Warewolf User Guide 1: Introduction and Basic Concepts Contents: An Introduction to Warewolf Preparation for the Course Welcome to Warewolf Studio Create your first Microservice Exercise 1 Using the Explorer

More information

Angular 2 and Hexo. Static Meets Dynamic For the Best of Both Worlds! Copyright 2016 Code Career Academy

Angular 2 and Hexo. Static Meets Dynamic For the Best of Both Worlds! Copyright 2016 Code Career Academy Angular 2 and Hexo Static Meets Dynamic For the Best of Both Worlds! Who am I? Jeff Ammons Microsoft MVP Pluralsight Author CEO/Chief Instructor at Code Career Academy 25 Years Professional Experience

More information

Frontend UI Training. Whats App :

Frontend UI Training. Whats App : Frontend UI Training Whats App : + 916 667 2961 trainer.subbu@gmail.com What Includes? 1. HTML 5 2. CSS 3 3. SASS 4. JavaScript 5. ES 6/7 6. jquery 7. Bootstrap 8. AJAX / JSON 9. Angular JS 1x 10. Node

More information

Getting MEAN. with Mongo, Express, Angular, and Node SIMON HOLMES MANNING SHELTER ISLAND

Getting MEAN. with Mongo, Express, Angular, and Node SIMON HOLMES MANNING SHELTER ISLAND Getting MEAN with Mongo, Express, Angular, and Node SIMON HOLMES MANNING SHELTER ISLAND For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher

More information

What is Grails4Notes(TM)?

What is Grails4Notes(TM)? What is Grails4Notes(TM)? Justin Hill, CTO, Prominic.NET, Inc. Copyright (c) 2014. All rights reserved. Trademarks mentioned herein are the rights of their respective owners. About me and Prominic: Co-founder

More information

Learning Objectives. Description. Your AU Expert(s) Trent Earley Behlen Mfg. Co. Shane Wemhoff Behlen Mfg. Co.

Learning Objectives. Description. Your AU Expert(s) Trent Earley Behlen Mfg. Co. Shane Wemhoff Behlen Mfg. Co. PL17257 JavaScript and PLM: Empowering the User Trent Earley Behlen Mfg. Co. Shane Wemhoff Behlen Mfg. Co. Learning Objectives Using items and setting data in a Workspace Setting Data in Related Workspaces

More information

Getting started with Tabris.js Tutorial Ebook

Getting started with Tabris.js Tutorial Ebook Getting started with Tabris.js 2.3.0 Tutorial Ebook Table of contents Introduction...3 1 Get started...4 2 Tabris.js in action...5 2.1 Try the examples...5 2.2 Play with the examples...7 2.3 Write your

More information

Without further ado, let s go over and have a look at what I ve come up with.

Without further ado, let s go over and have a look at what I ve come up with. JIRA Integration Transcript VLL Hi, my name is Jonathan Wilson and I m the service management practitioner with NHS Digital based in the United Kingdom. NHS Digital is the provider of services to the National

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1 Notice Class Website http://www.cs.umb.edu/~jane/cs114/ Reading Assignment Chapter 1: Introduction to Java Programming

More information

10 Minute Demonstration Script

10 Minute Demonstration Script 10 Minute Demonstration Script Table of Contents The Demo... 3 The Interface... 3 Demo Flow... 3 Capture and Indexing... 4 Searches... 6 Integration and Workflow... 8 2 P a g e The Demo Most demonstrations

More information

Profound.js. Future of open source development on IBM i. Alex Roytman Profound Logic

Profound.js. Future of open source development on IBM i. Alex Roytman Profound Logic Profound.js Future of open source development on IBM i Alex Roytman Profound Logic What is Node.js? The most exciting technology ever to be brought over to IBM i Brings the platform forward in a way like

More information

Kyle Rainville Littleton Coin Company

Kyle Rainville Littleton Coin Company Kyle Rainville Littleton Coin Company What is JSON? Javascript Object Notation (a subset of) Data Interchange Format Provides a way for communication between platforms & languages Derived from Javascript

More information

CSE 344 JULY 9 TH NOSQL

CSE 344 JULY 9 TH NOSQL CSE 344 JULY 9 TH NOSQL ADMINISTRATIVE MINUTIAE HW3 due Wednesday tests released actual_time should have 0s not NULLs upload new data file or use UPDATE to change 0 ~> NULL Extra OOs on Mondays 5-7pm in

More information

Introduction to Express.js. CSC309 Feb. 6, 2015 Surya Nallu

Introduction to Express.js. CSC309 Feb. 6, 2015 Surya Nallu Introduction to Express.js CSC309 Feb. 6, 2015 Surya Nallu What is Express.js? Web application framework for Node.js Light-weight and minimalist Provides boilerplate structure & organization for your web-apps

More information

APPM 2460 Matlab Basics

APPM 2460 Matlab Basics APPM 2460 Matlab Basics 1 Introduction In this lab we ll get acquainted with the basics of Matlab. This will be review if you ve done any sort of programming before; the goal here is to get everyone on

More information

AngularJS Fundamentals

AngularJS Fundamentals AngularJS Fundamentals by Jeremy Zerr Blog: http://www.jeremyzerr.com LinkedIn: http://www.linkedin.com/in/jrzerr Twitter: http://www.twitter.com/jrzerr What is AngularJS Open Source Javascript MVC/MVVM

More information

Homework 8: Ajax, JSON and Responsive Design Travel and Entertainment Search (Bootstrap/Angular/AJAX/JSON/jQuery /Cloud Exercise)

Homework 8: Ajax, JSON and Responsive Design Travel and Entertainment Search (Bootstrap/Angular/AJAX/JSON/jQuery /Cloud Exercise) Homework 8: Ajax, JSON and Responsive Design Travel and Entertainment Search (Bootstrap/Angular/AJAX/JSON/jQuery /Cloud Exercise) 1. Objectives Get familiar with the AJAX and JSON technologies Use a combination

More information

END-TO-END JAVASCRIPT WEB APPS

END-TO-END JAVASCRIPT WEB APPS END-TO-END JAVASCRIPT WEB APPS HTML5, NODE.JS AND MONGODB CADEC 2013 by Peter Larsson JAVASCRIPT IS NOT EVIL TECH. INDEX, JAN 2013 Dice Job Posts Google 20,000 2,400,000,000 15,000 1,800,000,000 10,000

More information

Create-A-Page Design Documentation

Create-A-Page Design Documentation Create-A-Page Design Documentation Group 9 C r e a t e - A - P a g e This document contains a description of all development tools utilized by Create-A-Page, as well as sequence diagrams, the entity-relationship

More information

JavaScript I Language Basics

JavaScript I Language Basics JavaScript I Language Basics Chesapeake Node.js User Group (CNUG) https://www.meetup.com/chesapeake-region-nodejs-developers-group START BUILDING: CALLFORCODE.ORG Agenda Introduction to JavaScript Language

More information

Java with Node.js Powering the Next Generation of Web Applications

Java with Node.js Powering the Next Generation of Web Applications Java with Node.js Powering the Next Generation of Web Applications Oracle Code One, Oct 23rd 2018 Chris Bailey Chief Architect, Cloud Native Runtimes @IBM baileyc@uk.ibm.com @Chris Bailey CloudNativeJS.io

More information

1) Log on to the computer using your PU net ID and password.

1) Log on to the computer using your PU net ID and password. CS 150 Lab Logging on: 1) Log on to the computer using your PU net ID and password. Connecting to Winter: Winter is the computer science server where all your work will be stored. Remember, after you log

More information

JavaScript: the language of browser interactions. Claudia Hauff TI1506: Web and Database Technology

JavaScript: the language of browser interactions. Claudia Hauff TI1506: Web and Database Technology JavaScript: the language of browser interactions Claudia Hauff TI1506: Web and Database Technology ti1506-ewi@tudelft.nl Densest Web lecture of this course. Coding takes time. Be friendly with Codecademy

More information

Open Source Software: What and Why?

Open Source Software: What and Why? ESRI and Open Source A Love Story Presented by Bates Rambow Open Source Software: What and Why? What Software that has its source code published for anyone to inspect the source code. Generally released

More information

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from BEFORE CLASS If you haven t already installed the Firebug extension for Firefox, download it now from http://getfirebug.com. If you don t already have the Firebug extension for Firefox, Safari, or Google

More information

web.py Tutorial Tom Kelliher, CS 317 This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment.

web.py Tutorial Tom Kelliher, CS 317 This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment. web.py Tutorial Tom Kelliher, CS 317 1 Acknowledgment This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment. 2 Starting So you know Python and want to make

More information

CSc 337 LECTURE 16: WRITING YOUR OWN WEB SERVICE

CSc 337 LECTURE 16: WRITING YOUR OWN WEB SERVICE CSc 337 LECTURE 16: WRITING YOUR OWN WEB SERVICE Basic web service // CSC 337 hello world server const express = require("express"); const app = express(); app.use(express.static('public')); app.get('/',

More information

Sessions. Mendel Rosenblum. CS142 Lecture Notes - Sessions

Sessions. Mendel Rosenblum. CS142 Lecture Notes - Sessions Sessions Mendel Rosenblum How do we know what user sent request? Would like to authenticate user and have that information available each time we process a request. More generally web apps would like to

More information

welcome to BOILERCAMP HOW TO WEB DEV

welcome to BOILERCAMP HOW TO WEB DEV welcome to BOILERCAMP HOW TO WEB DEV Introduction / Project Overview The Plan Personal Website/Blog Schedule Introduction / Project Overview HTML / CSS Client-side JavaScript Lunch Node.js / Express.js

More information

AngularJS Intro Homework

AngularJS Intro Homework AngularJS Intro Homework Contents 1. Overview... 2 2. Database Requirements... 2 3. Navigation Requirements... 3 4. Styling Requirements... 4 5. Project Organization Specs (for the Routing Part of this

More information

Quick.JS Documentation

Quick.JS Documentation Quick.JS Documentation Release v0.6.1-beta Michael Krause Jul 22, 2017 Contents 1 Installing and Setting Up 1 1.1 Installation................................................ 1 1.2 Setup...................................................

More information

MEAN Stack. 1. Introduction. 2. Foundation a. The Node.js framework b. Installing Node.js c. Using Node.js to execute scripts

MEAN Stack. 1. Introduction. 2. Foundation a. The Node.js framework b. Installing Node.js c. Using Node.js to execute scripts MEAN Stack 1. Introduction 2. Foundation a. The Node.js framework b. Installing Node.js c. Using Node.js to execute scripts 3. Node Projects a. The Node Package Manager b. Creating a project c. The package.json

More information

SSJS Server-Side JavaScript WAF Wakanda Ajax Framework

SSJS Server-Side JavaScript WAF Wakanda Ajax Framework 1 28/06/2012 13:45 What You Will Find in those Examples In the Quick Start, you discovered the basic principles of Wakanda programming: you built a typical employees/companies application by creating the

More information

Making a Clickable Map Display

Making a Clickable Map Display This is a presentation about of CAP Alerts. It describes freeware that presents a Web page in HTML with embedded Javascript. That clickable map and the information presented can be customized as much you

More information

Hands on Angular Framework

Hands on Angular Framework FACULTY OF AUTOMATION AND COMPUTER SCIENCE COMPUTER SCIENCE DEPARTMENT Hands on Angular Framework Ioan Salomie Tudor Cioara Ionut Anghel Marcel Antal Teodor Petrican Claudia Daniela Pop Dorin Moldovan

More information

Cookies, sessions and authentication

Cookies, sessions and authentication Cookies, sessions and authentication TI1506: Web and Database Technology Claudia Hauff! Lecture 7 [Web], 2014/15 1 Course overview [Web] 1. http: the language of Web communication 2. Web (app) design &

More information