Setting up an Angular 4 MEAN Stack (Tutorial)

Size: px
Start display at page:

Download "Setting up an Angular 4 MEAN Stack (Tutorial)"

Transcription

1 Setting up an Angular 4 MEAN Stack (Tutorial) MEAN4 Stack, MongoDB, Express.js, Angular4, Node.js Installed Node.js Angular4 Express.js MongoDB Setup setup MongoDB locally api.js Once start MongoDB (mongod.exe) open another command prompt and connect to it through the shell by running mongo.exe Inside the shell create DB insert names into DB verified DB by accessing it by directly visiting the API endpoint URL Setup Angular to access data data.service.ts app.module.ts app.component.ts app.component.html ng build Angular 1

2 Testing run node server 2

3 localhost:3000 Supporting Files changed, added 3 Karma.conf.js // Karma configuration file, see link for more information // module.exports = function (config) { config.set({ basepath: '', frameworks: ['jasmine', '@angular/cli'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), require('@angular/cli/plugins/karma') ], client:{ clearcontext: false // leave Jasmine Spec Runner output visible in browser, coverageistanbulreporter: {

4 reports: [ 'html', 'lcovonly' ], fixwebpacksourcepaths: true, angularcli: { environment: 'dev', reporters: ['progress', 'kjhtml'] port: 9876, colors: true, loglevel: config.log_info, autowatch: true, browsers: ['Chrome'], singlerun: false ; server.js const express = require('express'); const bodyparser = require('body-parser'); const path = require('path'); const http = require('http'); const app = express(); // API file for interacting with MongoDB const api = require('./server/routes/api'); // Parsers app.use(bodyparser.json()); app.use(bodyparser.urlencoded({ extended: false)); // Angular DIST output folder app.use(express.static(path.join( dirname, 'dist'))); // API location app.use('/api', api); // Send all other requests to the Angular app app.get('*', (req, res) => { res.sendfile(path.join( dirname, 'dist/index.html')); //Set Port const port = process.env.port '3000'; app.set('port', port); const server = http.createserver(app); server.listen(port, () => console.log(`running on localhost:${port`)); 4

5 mongod.cfg systemlog: destination: file path: c:\data\log\mongod.log storage: dbpath: c:\data\db api.js const express = require('express'); const router = express.router(); const MongoClient = require('mongodb').mongoclient; const ObjectID = require('mongodb').objectid; // Connect const connection = (closure) => { return MongoClient.connect('mongodb://localhost:27017/mean', (err, db) => { if (err) return console.log(err); ; closure(db); // Error handling const senderror = (err, res) => { response.status = 501; response.message = typeof err == 'object'? err.message : err; res.status(501).json(response); ; // Response handling let response = { status: 200, data: [], message: null ; // Get users router.get('/users', (req, res) => { connection((db) => { db.collection('users').find().toarray().then((users) => { response.data = users; res.json(response); ) 5

6 .catch((err) => { senderror(err, res); module.exports = router;: data.service.ts import { Injectable from '@angular/core'; import { Http, Headers, RequestOptions from '@angular/http'; import export class DataService { result:any; constructor(private _http: Http) { getusers() { return this._http.get("/api/users").map(result => this.result = result.json().data); 6 app.module.ts import { BrowserModule from '@angular/platform-browser'; import { NgModule from '@angular/core'; import { AppComponent from './app.component'; // Import the Http Module and our Data Service import { HttpModule from '@angular/http'; import { DataService from declarations: [ AppComponent ], imports: [ BrowserModule, HttpModule // <-Add HttpModule ], providers: [DataService], // <-Add DataService bootstrap: [AppComponent]

7 ) export class AppModule { app.component.ts import { Component from '@angular/core'; // Import the DataService import { DataService from selector: 'app-root', templateurl: './app.component.html', styleurls: ['./app.component.css'] ) export class AppComponent { // Define a users property to hold our user data users: Array<any>; // Create an instance of the DataService through dependency injection constructor(private _dataservice: DataService) { // Access the Data Service's getusers() method we defined this._dataservice.getusers().subscribe(res => this.users = res); app.component.html <div style="text-align:center"> <h1> MEAN Stack, MongoDB, Express.js, Angular4, Node.js <br> Mongo.exe connects thru this shell to Mongod.exe (MongoDB) </h1> </div> <ul> <li *ngfor="let user of users">{{ user.name </li> </ul> 7

By the end of this Angular 6 tutorial, you'll learn by building a real world example application:

By the end of this Angular 6 tutorial, you'll learn by building a real world example application: Throughout this Angular 6 tutorial, we'll learn to build a full-stack example web application with Angular 6, the latest version of Angular The most popular framework/platform for building mobile and desktop

More information

Integrating Angular with ASP.NET Core RESTful Services. Dan Wahlin

Integrating Angular with ASP.NET Core RESTful Services. Dan Wahlin Integrating Angular with ASP.NET Core RESTful Services Dan Wahlin Dan Wahlin https://blog.codewithdan.com @DanWahlin Get the Content: http://codewithdan.me/angular-aspnet-core Agenda The Big Picture Creating

More information

One Framework. Angular

One Framework. Angular One Framework. Angular Web 2.0 Marc Dangschat Introduction AngularJS (1) released in 2009 Angular (2) released October Short: ng Framework TypeScript, JavaScript, Dart MIT license

More information

Before proceeding with this tutorial, you should have a basic understanding of HTML, CSS, JavaScript, TypeScript, and Document Object Model (DOM).

Before proceeding with this tutorial, you should have a basic understanding of HTML, CSS, JavaScript, TypeScript, and Document Object Model (DOM). i About the Tutorial Angular 4 is a JavaScript framework for building web applications and apps in JavaScript, html, and TypeScript, which is a superset of JavaScript. Angular provides built-in features

More information

IN4MATX 133: User Interface Software

IN4MATX 133: User Interface Software IN4MATX 133: User Interface Software Lecture 13: Components in Angular Professor Daniel A. Epstein TA Jamshir Goorabian TA Simion Padurean 1 Notes Important: please put your name/email/id in the readme.txt

More information

Advantages: simple, quick to get started, perfect for simple forms, don t need to know how form model objects work

Advantages: simple, quick to get started, perfect for simple forms, don t need to know how form model objects work 1 Forms 1.1 Introduction You cannot enter data in an application without forms. AngularJS allowed the user to create forms quickly, using the NgModel directive to bind the input element to the data in

More information

Mobile App Development

Mobile App Development Mobile App Development NativeScript e Angular 2+ filippo Filippo Matteo Riggio CTO @ Sviluppatore Full-Stack e Mobile Scenario Scenario Nativo WebView-ed Soluzioni cross - from web to native Swift - Objective

More information

Cross-Platform Mobile-Entwicklung mit dem Ionic Framework

Cross-Platform Mobile-Entwicklung mit dem Ionic Framework Cross-Platform Mobile-Entwicklung mit dem Ionic Framework Robin Nunkesser 6. Februar 2018 Grundlagen Hintergrund 2013 von Drifty entwickelt Setzt auf Cordova und AngularJS auf Versionssprung von ionic

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

Upgrading to Ionic 3 APPENDIX D. Angular 4

Upgrading to Ionic 3 APPENDIX D. Angular 4 APPENDIX D Upgrading to Ionic 3 As this book was being printed, Ionic received another major upgrade. Unlike the quantum leap from Ionic 1 to Ionic 2, this upgrade is less dramatic. With that being said,

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

About me. Google Developer Expert Telerik Developer Expert Digital

About me. Google Developer Expert Telerik Developer Expert Digital NGRX THERE IS A REDUCER IN MY SOUP 1 About me Google Developer Expert Telerik Developer Expert Digital McKinsey @chris_noring 2 NGRX IS: An Angular implementation of Redux 3. 1 Why do we care about Redux?

More information

Decoupled Drupal with Angular

Decoupled Drupal with Angular Decoupled Drupal with Angular Agenda Introduction Short intro on Drupal What is decoupled and choosing the right architecture Introduction to Angular Setting up Angular development environment Demo Application

More information

Angular. конфигурируем до неузнаваемости

Angular. конфигурируем до неузнаваемости Angular конфигурируем до неузнаваемости 1 АЛЕКСЕЙ ОХРИМЕНКО TWITTER: AI_BOY setinterval(learnjavascript) 2 ? IPONWEB 9 10 Awesome Telegram RU https://github.com/aiboy/awesome-telegram-ru Какое важное

More information

Learn to Build Awesome Apps with Angular 2

Learn to Build Awesome Apps with Angular 2 Learn to Build Awesome Apps with Angular 2 Strong grasp on how to construct and compose features in Angular 2 Agenda Review Challenge Component Driven Architecture Template Driven Forms Server Communication

More information

Introduction to. Angular. Prof. Dr.-Ing. Thomas Wiedemann.

Introduction to. Angular. Prof. Dr.-Ing. Thomas Wiedemann. EwA - Web based systems Introduction to Angular Prof. Dr.-Ing. Thomas Wiedemann email: wiedem@informatik.htw-dresden.de HOCHSCHULE FÜR TECHNIK UND WIRTSCHAFT DRESDEN (FH) Fachbereich Informatik/Mathematik

More information

About me. Routing into the Sunset with Angular. Manfred Steyer SOFTWAREarchitekt.at Trainer & Consultant Focus: Angular Google Developer Expert (GDE)

About me. Routing into the Sunset with Angular. Manfred Steyer SOFTWAREarchitekt.at Trainer & Consultant Focus: Angular Google Developer Expert (GDE) Routing into the Sunset with Angular Manfred Steyer SOFTWAREarchitekt.at About me Manfred Steyer SOFTWAREarchitekt.at Trainer & Consultant Focus: Angular Google Developer Expert (GDE) Manfred Steyer Page

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

ANGULAR2 OVERVIEW. The Big Picture. Getting Started. Modules and Components. Declarative Template Syntax. Forms

ANGULAR2 OVERVIEW. The Big Picture. Getting Started. Modules and Components. Declarative Template Syntax. Forms FORMS IN ANGULAR Hello Cluj. I m Alex Lakatos, a Mozilla volunteer which helps other people volunteer. I want to talk to you today about Angular forms. What s a form you ask? A form creates a cohesive,

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

#06 RPC & REST CLIENT/SERVER COMPUTING AND WEB TECHNOLOGIES

#06 RPC & REST CLIENT/SERVER COMPUTING AND WEB TECHNOLOGIES 1 Introduction 2 Remote Procedure Call (RPC) is a high-level model for #06 RPC & REST CLIENT/SERVER COMPUTING AND WEB TECHNOLOGIES client-sever communication. It provides the programmers with a familiar

More information

Angular from the Beginning

Angular from the Beginning from the Beginning EMEA PUG Challenge, Prague Introduction Robert Prediger 25 years experience in PROGRESS 17 years experience in web development 8 years experience in Node.js robert.prediger@web4biz.de

More information

Markeplace web application with Foglab (Foglab with Marketplace)

Markeplace web application with Foglab (Foglab with Marketplace) Sunil Maharjan Markeplace web application with Foglab (Foglab with Marketplace) Helsinki Metropolia University of Applied Sciences Bachelor of Engineering Information Technology Bachelor s Thesis 11 th

More information

Chapter 1 - Model Driven Forms

Chapter 1 - Model Driven Forms Chapter 1 - Model Driven Forms Objectives This chapter includes the following model driven forms topics: Setup FormGroup initialization FormControl object Validation SubForms 1.1 Model Driven Forms Overview

More information

Updating web content in real time using Node.js

Updating web content in real time using Node.js Quest Journals Journal of Software Engineering and Simulation Volume1 ~ Issue 3 (2013) pp: 01-06 ISSN(Online) :2321-3795 ISSN (Print):2321-3809 www.questjournals.org Research Paper Updating web content

More information

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

What is Node.js? Tim Davis Director, The Turtle Partnership Ltd What is Node.js? Tim Davis Director, The Turtle Partnership Ltd About me Co-founder of The Turtle Partnership Working with Notes and Domino for over 20 years Working with JavaScript technologies and frameworks

More information

Learn to Build Awesome Apps with Angular 2

Learn to Build Awesome Apps with Angular 2 Learn to Build Awesome Apps with Angular 2 Strong grasp on how to construct a single feature in Angular 2 Agenda The Demo Application The Angular 2 Big Picture The Angular CLI Components Templates Services

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

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

Sample Copy. Not For Distribution.

Sample Copy. Not For Distribution. Angular 2 Interview Questions and Answers With Typescript and Angular 4 i Publishing-in-support-of, EDUCREATION PUBLISHING RZ 94, Sector - 6, Dwarka, New Delhi - 110075 Shubham Vihar, Mangla, Bilaspur,

More information

COMP 2406: Fundamentals of Web Applications. Winter 2014 Mid-Term Exam Solutions

COMP 2406: Fundamentals of Web Applications. Winter 2014 Mid-Term Exam Solutions COMP 2406: Fundamentals of Web Applications Winter 2014 Mid-Term Exam Solutions 1. ( true ) The Register button on / causes a form to be submitted to the server. 2. ( false ) In JavaScript, accessing object

More information

TypeScript. TypeScript. RxJS

TypeScript. TypeScript. RxJS Web 2017.08 About Me TypeScript TypeScript RxJS 2014 X 4 0 Mac/Windows Native UI Web Angular React JavaScript IM User DING Contact RPC Native Nw.js C++ Cef 2014 10 Web 11 nw.js Web App IM DING DING ->

More information

Advanced Express Web Application Development

Advanced Express Web Application Development Advanced Express Web Application Development Andrew Keig Chapter No. 1 "Foundations" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter NO.1

More information

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

Angular 2: What s new? Jonas Bandi, IvoryCode GmbH

Angular 2: What s new? Jonas Bandi, IvoryCode GmbH Angular 2: What s new? Jonas Bandi, IvoryCode GmbH Once upon a time the world was peacefully creating applications with AngularJS but change was lurking in the maze of a mailing list https://groups.google.com/forum/#!search/misko$20hevery$20may$2022$202013/polymer-dev/4rsyakmbtek/uyny3900wpij

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

Extending VMware vcloud Director User Interface Using Portal Extensibility Ticketing Example

Extending VMware vcloud Director User Interface Using Portal Extensibility Ticketing Example VMware vcloud Architecture Toolkit for Service Providers Extending VMware vcloud Director User Interface Using Portal Extensibility Ticketing Example Version 2.9 April 2018 Kelby Valenti 2018 VMware, Inc.

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

Advanced Angular & Angular 6 Preview. Bibhas Bhattacharya

Advanced Angular & Angular 6 Preview. Bibhas Bhattacharya Advanced Angular & Angular 6 Preview Bibhas Bhattacharya Agenda Lazy loading modules Using Bootstrap with Angular Publish/subscribe with the RxJS Subject API What's new in Angular 6 Lazy Loading Modules

More information

Front End. Presentation Layer. UI (User Interface) User <==> Data access layer

Front End. Presentation Layer. UI (User Interface) User <==> Data access layer Angular 2 S1ngS1ng Front End UI (User Interface) User Data access layer Presentation Layer Architecture Conventional VS SPA Angular 1 Framework! Framework! Framework! MVVM (MV*) Modulization Two-way

More information

AngulAr 4 Pocket Primer

AngulAr 4 Pocket Primer Angular 4 Pocket Primer LICENSE, DISCLAIMER OF LIABILITY, AND LIMITED WARRANTY By purchasing or using this book and disc (the Work ), you agree that this license grants permission to use the contents contained

More information

IBM Natural Language Understanding Node.js

IBM Natural Language Understanding Node.js IBM Natural Language Understanding Node.js Cognitive Solutions Application Development IBM Global Business Partners Duration: 90 minutes Updated: Dec 3, 2018 Klaus-Peter Schlotter kps@de.ibm.com Version

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

The Pizza Shop. Overview. Initial Setup

The Pizza Shop. Overview. Initial Setup The Pizza Shop 10.12.2016 Overview In this tutorial we will be building an example of an online pizza shop ordering system. You will be creating a user interface for your hungry customers. They will enter

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

Frontend Web Development with Angular. CC BY-NC-ND Carrot & Company GmbH

Frontend Web Development with Angular. CC BY-NC-ND Carrot & Company GmbH Frontend Web Development with Angular Agenda Questions Some infos Lecturing Todos Router NgModules Questions? Some Infos Code comments from us were made for improving your code. If you ignore them you

More information

LFE Medieninformatik WS 2016/2017

LFE Medieninformatik WS 2016/2017 Assignment 13 (HF, major subject) Due: no due date for your own preparation only. Goals These exercises will Help you prepare for the exam Reactivate topics we discussed during the semester Suggestion:

More information

End-to-End Test and Build

End-to-End Test and Build Chapter 12 End-to-End Test and Build In the previous chapters, we focus on the implementation of different user stories and the Ionic framework itself. In this chapter, we ll focus on some nonfunctional

More information

Before I forget... I'm Ari Lerner

Before I forget... I'm Ari Lerner The next frontier Before I forget... I'm Ari Lerner And this is a technical talk Get on your keyboard Work with me Coupons coupons coupons! 50% off Fullstack React 50% off ng-book 2 I have an idea Now

More information

From the Beginning: Your First Node.js Web Service

From the Beginning: Your First Node.js Web Service From the Beginning: Your First Node.js Web Service P. Venkatramen Data Access Development Oracle Database 10 April 2018 Copyright 2017, Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement

More information

Comprehensive AngularJS Programming (5 Days)

Comprehensive AngularJS Programming (5 Days) www.peaklearningllc.com S103 Comprehensive AngularJS Programming (5 Days) The AngularJS framework augments applications with the "model-view-controller" pattern which makes applications easier to develop

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

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

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

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

Angular 4 Training Course Content

Angular 4 Training Course Content CHAPTER 1: INTRODUCTION TO ANGULAR 4 Angular 4 Training Course Content What is Angular 4? Central Features of the Angular Framework Why Angular? Scope and Goal of Angular Angular 4 vs Angular 2 vs. AngularJS

More information

Oracle Bots Nodes.js SDK: Controlling Smart Homes Using IFTTT Applets with Oracle Digital Assistant

Oracle Bots Nodes.js SDK: Controlling Smart Homes Using IFTTT Applets with Oracle Digital Assistant Oracle Digital Assistant TechExchange Article. Oracle Bots Nodes.js SDK: Controlling Smart Homes Using IFTTT Applets with Oracle Digital Assistant Stefan Wörmcke, February 2019 Digital assistants like

More information

Arjen de Blok. Senior Technical Consultant bij ICT Groep ( sinds 1995 Programmeren sinds 1990 Technologiën. Links

Arjen de Blok. Senior Technical Consultant bij ICT Groep (  sinds 1995 Programmeren sinds 1990 Technologiën. Links Arjen de Blok Senior Technical Consultant bij ICT Groep (www.ict.eu) sinds 1995 Programmeren sinds 1990 Technologiën Links Visual C++ met Microsoft Foundation Classes.NET WinForms & WPF Silverlight ASP.NET

More information

3 Days Training Program

3 Days Training Program 3 Days Training Program What is AngularJS? A JavaScript framework for creating dynamic web applications Open Source GitHub: https://github.com/angular/angular.js MIT License Uses jquery jquery 1.7.1 or

More information

Index. Backbone.js app, 274 Behavior-driven development (BDD) language, 252 bodyparser() method, 257

Index. Backbone.js app, 274 Behavior-driven development (BDD) language, 252 bodyparser() method, 257 Index A Abstraction dirname global variable, 159 middleware, 155, 158 module.exports, 160 query string parameter, 158 routes, 156, 158 AngelList API, 278 app.configure() method, 47 application.js modules,

More information

Express.JS. Prof. Cesare Pautasso Modularity

Express.JS. Prof. Cesare Pautasso Modularity 1 / 30 Express.JS Prof. Cesare Pautasso http://www.pautasso.info cesare.pautasso@usi.ch @pautasso Modularity var msg = "x:"; //private var f = function(x) { return msg + " " + x; module.exports.f = f;

More information

The course is supplemented by numerous hands-on labs that help attendees reinforce their theoretical knowledge of the learned material.

The course is supplemented by numerous hands-on labs that help attendees reinforce their theoretical knowledge of the learned material. Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc WA2442 Introduction to JavaScript Objectives This intensive training course

More information

DNCMagazine. ANGULAR. Cheat Sheet

DNCMagazine.  ANGULAR. Cheat Sheet DNCMagazine www.dotnetcurry.com ANGULAR Cheat Sheet Authors Keerti Kotaru V Keerti Kotaru has been working on web applications for over 15 years now. He started his career as an ASP.Net, C# developer.

More information

INTRODUCTION TO IONIC 2

INTRODUCTION TO IONIC 2 LECTURE 7 INTRODUCTION TO IONIC 2 DANIEL RYS JAN VÁCLAVÍK OVERVIEW Create new Ionic2 application Why Ionic2 Project structure Features 2/95 INSTALL IONIC 2 & CREATE NEW APPLICATION $ npm install -g ionic@beta

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

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

Progressive web app. Juraj Kubala

Progressive web app. Juraj Kubala Progressive web app with Angular 2 and ASP.NET Juraj Kubala Bachelor s thesis December 2017 School of Technology, Communication and Transport Degree Programme in Information and Communications Technology

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

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

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

Development of a New Web Portal for the Database on Demand Service

Development of a New Web Portal for the Database on Demand Service EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH Development of a New Web Portal for the Database on Demand Service by Can Yilmaz ALTINIGNE Istanbul Technical University, Turkey supervised by Ignacio Coterillo

More information

Index. Bare-bones connect application, 125 Binary JSON (BSON), 171. Callback functions asynchronous code ifelse, 199 loops,

Index. Bare-bones connect application, 125 Binary JSON (BSON), 171. Callback functions asynchronous code ifelse, 199 loops, Index A Amazon Web Services (AWS) console, 260 261 EBS, 262 EC2 Amazon Linux AMI, 262, 265 connect script and sample usage, 271 dashboard and Launch Instance, 265 global package installation, 273 hard

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

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

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

Catbook Workshop: Intro to NodeJS. Monde Duinkharjav

Catbook Workshop: Intro to NodeJS. Monde Duinkharjav Catbook Workshop: Intro to NodeJS Monde Duinkharjav What is NodeJS? NodeJS is... A Javascript RUNTIME ENGINE NOT a framework NOT Javascript nor a JS package It is a method for running your code in Javascript.

More information

Lab 6: Testing. Software Studio DataLab, CS, NTHU

Lab 6: Testing. Software Studio DataLab, CS, NTHU Lab 6: Testing Software Studio DataLab, CS, NTHU Notice This lab is about software development good practices Interesting for those who like software development and want to go deeper Good to optimize

More information

Tarek Elachkar, VP Customer Solutions - Jahia A real world story of Angular and Apache Unomi integration.

Tarek Elachkar, VP Customer Solutions - Jahia A real world story of Angular and Apache Unomi integration. Tarek Elachkar, VP Customer Solutions - Jahia telachkar@jahia.com A real world story of Angular and Apache Unomi integration #ApacheCon 1 QUICK INTRODUCTIONS Me, myself and I QUICK INTRODUCTIONS Our software

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

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

RadiantQ jquery Gantt Package. RadiantQ,

RadiantQ jquery Gantt Package. RadiantQ, RadiantQ jquery Gantt Package RadiantQ, 2009-2018 Table of Contents UserGuide 7 GanttControl or FlexyGantt 7 Introduction 9 Installation 9 About Samples 10 HTML Samples 11 Angular Samples 12 React Samples

More information

MAKE NODEJS APIs GREAT WITH TYPESCRIPT

MAKE NODEJS APIs GREAT WITH TYPESCRIPT MAKE NODEJS APIs GREAT WITH TYPESCRIPT ABOUT ME I really like my work, software engineering never makes me bored, always keeps in learning and improving mood. dmytro.zharkov@gmail.com http://bit.ly/2fam3lr

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

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

MongoDB. Robert M. Vunabandi

MongoDB. Robert M. Vunabandi MongoDB Robert M. Vunabandi What is MongoDB? One of the most popular NoSQL DBMS Why use MongoDB? Very efficient when we need to write a lot to the database. Schemas are very prone to changes (we ll get

More information

ShareSci: A Research Paper Networking Site

ShareSci: A Research Paper Networking Site ShareSci: A Research Paper Networking Site Mike D'Arcy 2553280 Status Report - April 25, 2017 Utkarsh Patel 2623325 Introduction We proposed ShareSci, a research paper library site where users can find,

More information

Lightweight Platform for Internet of Things with support for CoAP Block-wise Transfer

Lightweight Platform for Internet of Things with support for CoAP Block-wise Transfer Lightweight Platform for Internet of Things with support for CoAP Block-wise Transfer Namrata Pawar, Madhuri Wakode Department of Computer Engineering Pune Institure of Computer Technology, Pune, India

More information

mongodb-tornado-angular Documentation

mongodb-tornado-angular Documentation mongodb-tornado-angular Documentation Release 0.1.1 David Levy February 22, 2017 Contents 1 Installation 3 1.1 linux/mac................................................. 3 1.2 Python3.x.................................................

More information

COMP 2406: Fundamentals of Web Applications Winter 2014 Final Exam Solutions Instructor: Anil Somayaji April 24, 2014

COMP 2406: Fundamentals of Web Applications Winter 2014 Final Exam Solutions Instructor: Anil Somayaji April 24, 2014 COMP 2406: Fundamentals of Web Applications Winter 2014 Final Exam Solutions Instructor: Anil Somayaji April 24, 2014 This exam has 5 pages (including this one). There are 20 questions. Each question is

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

Angular2. Bernhard Niedermayer. Software Development playing around with Angular2 since alpha.

Angular2. Bernhard Niedermayer. Software Development playing around with Angular2 since alpha. Catalysts GmbH Bernhard Niedermayer Software Development bernhard.niedermayer@catalysts.cc playing around with Angular2 since alpha.something Angular2 Catalysts GmbH Angular2 TypeScript 2 Languages how

More information

ANGULAR 2.X,4.X + TYPESRCIPT by Sindhu

ANGULAR 2.X,4.X + TYPESRCIPT by Sindhu ANGULAR 2.X,4.X + TYPESRCIPT by Sindhu GETTING STARTED WITH TYPESCRIPT Installing TypeScript Compiling the code Building a simple demo. UNDERSTANDING CLASSES Building a class Adding properties Demo of

More information

About Me. Name: Jonathan Brown. Job: Full Stack Web Developer. Experience: Almost 3 years of experience in WordPress development

About Me. Name: Jonathan Brown. Job: Full Stack Web Developer. Experience: Almost 3 years of experience in WordPress development About Me Name: Jonathan Brown Job: Full Stack Web Developer Experience: Almost 3 years of experience in WordPress development Getting started With the REST API and Angular JS Folder Structure How to setup

More information

Production Registration System 2.0

Production Registration System 2.0 Production Registration System 2.0 B.Sc. Computer Science Developer s Manual Spring 2017 Group members Albina Guseynova Bryndís Eva Erlingsdóttir Höskuldur Ágústsson Kristinn Heiðar Freysteinsson Instructor

More information

Lets take a closer look at Ajax & node.js. Claudia Hauff TI1506: Web and Database Technology

Lets take a closer look at Ajax & node.js. Claudia Hauff TI1506: Web and Database Technology Lets take a closer look at Ajax & node.js Claudia Hauff TI1506: Web and Database Technology ti1506-ewi@tudelft.nl At the end of this lecture, you should be able to Implement client-side code using plain

More information

Demystifying Angular 2. SPAs for the Web of Tomorrow

Demystifying Angular 2. SPAs for the Web of Tomorrow Demystifying Angular 2 SPAs for the Web of Tomorrow Philipp Tarasiewicz, JavaLand, 08.03.2016 Web Dev / Distributed Systems 15 yr. About Me Philipp Tarasiewicz Consultant / Trainer / Developer philipp.tarasiewicz@googlemail.com

More information

MongoDB Web Architecture

MongoDB Web Architecture MongoDB Web Architecture MongoDB MongoDB is an open-source, NoSQL database that uses a JSON-like (BSON) document-oriented model. Data is stored in collections (rather than tables). - Uses dynamic schemas

More information

Ajax- XMLHttpResponse. Returns a value such as ArrayBuffer, Blob, Document, JavaScript object, or a DOMString, based on the value of

Ajax- XMLHttpResponse. Returns a value such as ArrayBuffer, Blob, Document, JavaScript object, or a DOMString, based on the value of Ajax- XMLHttpResponse XMLHttpResponse - A Read only field Returns a value such as ArrayBuffer, Blob, Document, JavaScript object, or a DOMString, based on the value of XMLHttpRequest.responseType. This

More information

MANTRA REGISTERED DEVICE SERVICE WINDOWS MANTRA SOFTECH INDIA PVT LTD

MANTRA REGISTERED DEVICE SERVICE WINDOWS MANTRA SOFTECH INDIA PVT LTD MANTRA REGISTERED DEVICE SERVICE WINDOWS MANTRA SOFTECH INDIA PVT LTD TABLE OF CONTENTS 1. Download link for Mantra RD Service Setup.... 3 2. Mantra MFS100 Driver Setup Installation.... 4 3. Mantra RD

More information

IERG Tutuorial 5. Benedict Mak

IERG Tutuorial 5. Benedict Mak IERG4210 - Tutuorial 5 Benedict Mak Handlebars - Basic - Handlebars - Three elements - Template, control JS, Data - Two ways to use Handlebars - Client side - Handlebars - Get data in the form of JSON

More information