SlideShare a Scribd company logo
Suche senden
Hochladen
Einloggen
Registrieren
Web Development with NodeJS
Melden
Riza Fahmi
Folgen
Co-founder um Hacktiv8
9. Sep 2017
•
0 gefällt mir
•
554 views
1
von
32
Web Development with NodeJS
9. Sep 2017
•
0 gefällt mir
•
554 views
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Melden
Technologie
Develop web application with NodeJS, http and ExpressJS
Riza Fahmi
Folgen
Co-founder um Hacktiv8
Recomendados
Introduction to REST API with Node.js
Yoann Gotthilf
3.5K views
•
29 Folien
How SignalR and SQL Dependency Work Process in ASP.NET with SQL Server?
Raju Ahmed
1.8K views
•
20 Folien
Nodejs vatsal shah
Vatsal N Shah
1.1K views
•
26 Folien
Introduction to .NET Core
Marco Parenzan
3.6K views
•
65 Folien
Reactjs
Mallikarjuna G D
436 views
•
97 Folien
.Net Core
Bertrand Le Roy
9.9K views
•
21 Folien
Más contenido relacionado
Was ist angesagt?
Rest api with node js and express
GirlsInTechnology Nepal
745 views
•
16 Folien
NestJS
Wilson Su
1.1K views
•
19 Folien
應用 Azure Platform-as-a-Service & DevOps 打造彈性企業服務
Edward Kuo
76 views
•
35 Folien
TypeScript
Saray Chak
80 views
•
37 Folien
Database Connectivity in PHP
Taha Malampatti
2.3K views
•
12 Folien
Road to serverless
Matheus Fidelis
193 views
•
93 Folien
Was ist angesagt?
(20)
Rest api with node js and express
GirlsInTechnology Nepal
•
745 views
NestJS
Wilson Su
•
1.1K views
應用 Azure Platform-as-a-Service & DevOps 打造彈性企業服務
Edward Kuo
•
76 views
TypeScript
Saray Chak
•
80 views
Database Connectivity in PHP
Taha Malampatti
•
2.3K views
Road to serverless
Matheus Fidelis
•
193 views
Nodejs presentation
Arvind Devaraj
•
8K views
What Is Php
AVC
•
4.8K views
Express JS Rest API Tutorial
Simplilearn
•
175 views
Microservices with Apache Camel
Claus Ibsen
•
6.4K views
Perspectives on the Evolution of HTML
Daniel Austin
•
2.9K views
React Js Simplified
Sunil Yadav
•
335 views
webworkers
Asanka Indrajith
•
805 views
Ch09 整合資料庫
Justin Lin
•
467 views
Amazon Cognito와 함께 서버리스를..! - 이재일 (강남비기너모임) :: AWS Community Day 2017
AWSKRUG - AWS한국사용자모임
•
2.3K views
Living with SQL and NoSQL at craigslist, a Pragmatic Approach
Jeremy Zawodny
•
28.5K views
Java (spring) vs javascript (node.js)
류 영수
•
294 views
Asp.Net Core MVC with Entity Framework
Shravan A
•
209 views
PHP-MySQL Database Connectivity Using XAMPP Server
Rajiv Bhatia
•
1.1K views
MSA 전략 2: 마이크로서비스, 어떻게 구현할 것인가?
VMware Tanzu Korea
•
5.5K views
Similar a Web Development with NodeJS
HTTP fundamentals for developers
Mario Cardinal
4.2K views
•
48 Folien
HTTP.pdf
stephanedjeukam1
21 views
•
11 Folien
Java web programming
Ching Yi Chan
4.3K views
•
45 Folien
Restful Web Services
Angelin R
12.2K views
•
52 Folien
Performance #4 network
Vitali Pekelis
533 views
•
156 Folien
Rpi python web
sewoo lee
839 views
•
37 Folien
Similar a Web Development with NodeJS
(20)
HTTP fundamentals for developers
Mario Cardinal
•
4.2K views
HTTP.pdf
stephanedjeukam1
•
21 views
Java web programming
Ching Yi Chan
•
4.3K views
Restful Web Services
Angelin R
•
12.2K views
Performance #4 network
Vitali Pekelis
•
533 views
Rpi python web
sewoo lee
•
839 views
REST
Raúl Leal Membrilla
•
59 views
Web services tutorial
Lorna Mitchell
•
15K views
Web Services Tutorial
Lorna Mitchell
•
13.2K views
RESTful services
gouthamrv
•
4.5K views
Rest
Carol McDonald
•
2.6K views
Rest with Java EE 6 , Security , Backbone.js
Carol McDonald
•
8.9K views
Resource-Oriented Web Services
Bradley Holt
•
4.8K views
The Full Power of ASP.NET Web API
Eyal Vardi
•
62.7K views
Scalable network applications, event-driven - Node JS
Cosmin Mereuta
•
1.2K views
Doing REST Right
Kerry Buckley
•
28.3K views
RESTful Web Services with JAX-RS
Carol McDonald
•
7.1K views
Url programming
vantinhkhuc
•
678 views
RESTful SOA - 中科院暑期讲座
Li Yi
•
301 views
Multi Client Development with Spring for SpringOne 2GX 2013 with Roy Clarkson
Joshua Long
•
1.8K views
Más de Riza Fahmi
Membangun Aplikasi Web dengan Elixir dan Phoenix
Riza Fahmi
63 views
•
46 Folien
Berbagai Pilihan Karir Developer
Riza Fahmi
125 views
•
77 Folien
Web dan Progressive Web Apps di 2020
Riza Fahmi
255 views
•
74 Folien
Remote Working/Learning
Riza Fahmi
202 views
•
123 Folien
How to learn programming
Riza Fahmi
145 views
•
36 Folien
Rapid App Development with AWS Amplify
Riza Fahmi
188 views
•
49 Folien
Más de Riza Fahmi
(20)
Membangun Aplikasi Web dengan Elixir dan Phoenix
Riza Fahmi
•
63 views
Berbagai Pilihan Karir Developer
Riza Fahmi
•
125 views
Web dan Progressive Web Apps di 2020
Riza Fahmi
•
255 views
Remote Working/Learning
Riza Fahmi
•
202 views
How to learn programming
Riza Fahmi
•
145 views
Rapid App Development with AWS Amplify
Riza Fahmi
•
188 views
Menguak Misteri Module Bundler
Riza Fahmi
•
193 views
Beberapa Web API Menarik
Riza Fahmi
•
194 views
MVP development from software developer perspective
Riza Fahmi
•
185 views
Ekosistem JavaScript di Indonesia
Riza Fahmi
•
2.5K views
Perkenalan ReasonML
Riza Fahmi
•
317 views
How I Generate Idea
Riza Fahmi
•
345 views
Strategi Presentasi Untuk Developer Workshop Slide
Riza Fahmi
•
383 views
Lesson Learned from Prolific Developers
Riza Fahmi
•
417 views
Clean Code JavaScript
Riza Fahmi
•
689 views
The Future of AI
Riza Fahmi
•
532 views
Chrome Dev Summit 2018 - Personal Take Aways
Riza Fahmi
•
473 views
Essentials and Impactful Features of ES6
Riza Fahmi
•
813 views
Modern Static Site with GatsbyJS
Riza Fahmi
•
1K views
Introduction to ReasonML
Riza Fahmi
•
455 views
Último
OpenAI API crash course
Dimitrios Platis
41 views
•
42 Folien
WaveTech Investor Presentation
Dan Spottsville
13 views
•
67 Folien
Mule Meetup Calgary- API Governance & Conformance.pdf
NithaJoseph4
73 views
•
19 Folien
Common WordPress APIs_ Settings API
Jonathan Bossenger
36 views
•
10 Folien
alfred-product-research-proposal.pdf
AlfredSuratos
30 views
•
13 Folien
alfred-product-research-proposal.pdf
AlfredSuratos
10 views
•
13 Folien
Último
(20)
OpenAI API crash course
Dimitrios Platis
•
41 views
WaveTech Investor Presentation
Dan Spottsville
•
13 views
Mule Meetup Calgary- API Governance & Conformance.pdf
NithaJoseph4
•
73 views
Common WordPress APIs_ Settings API
Jonathan Bossenger
•
36 views
alfred-product-research-proposal.pdf
AlfredSuratos
•
30 views
alfred-product-research-proposal.pdf
AlfredSuratos
•
10 views
Empowering City Clerks
OnBoard
•
120 views
Solving today’s Traffic Problems with Sustainable Ride Hailing Solution
On Demand Clone
•
51 views
GDSC INFO SESSION 2023.pdf
Mustabshira
•
14 views
Omada Pitch Deck
sjcobrien
•
41 views
Embracing the Risk and Opportunity of AI & Cloud.pptx
Symptai Consulting Limited
•
14 views
Project Euler in Python
Tetsuo Koyama
•
31 views
Edge Computing - A Future Fuel of 21st Century.pptx
NidhiShingade
•
10 views
Lesson 1 - Algorithm and Flowcharting.pdf
ROWELL MARQUINA
•
68 views
Webinar : L&H Insurance in the 21st Century: Navigating Antimicrobial Resista...
The Digital Insurer
•
25 views
Brisbane MuleSoft Meetup 13 MuleSoft Maven and Managing Dependencies Part 1.pptx
BrianFraser29
•
26 views
Google cloud Study Jam 2023.pptx
GDSCNiT
•
511 views
Obsoleting Global Supply Chain Management
Converge
•
26 views
Connecting the Dots: Early Insights from Customer Journey Mapping with Graphs...
Neo4j
•
9 views
10 reasons to choose Galaxy Tab S9 for work on the go
Samsung Business USA
•
155 views
Web Development with NodeJS
1.
WEBDEVELOPMENT NODEJS
2.
INTRO BASICWEBAPPLICATIONARCHITECTURE HTTP Request HTTP Response Client Server Database
3.
INTRO HTTPREQUEST GET / HTTP/1.1
Host: example.com:3000 Accept: text/html,application/ xhtml+xml,application/xml
4.
INTRO HTTPRESPONSE HTTP/1.1 200 OK Content-length:
47281 Content-Type:text/html,application/xhtml+xml,application/xml <!DOCTYPE html><html><head><title>Express </title> ...
5.
INTRO
6.
INTRO HTTPSTATUSCODERANGES 100-199 -> Informational 200-299
-> Successful 300-399 -> Redirection (something moved) 400-499 -> Client error 500-599 -> Server error
7.
INTRO HTTPVERBS GET Retrieves a
resource POST Creates a new resource PUT Updates an existing resource DELETE Removes a resource READ CREATE UPDATE DELETE CRU D
8.
WebApplicationIn Nodejs
9.
HTTP Modulehttps://nodejs.org/dist/latest-v6.x/docs/api/http.html
10.
HTTP MODULE CREATESERVER const http
= require('http') http.createServer((request, response) => { response.writeHead(200, { 'Content-Type': 'text/plain' }) response.end('Hello, Bandungn') }).listen(5432, '127.0.0.1') console.log('Server running at http: //127.0.0.1:5432')
11.
Fast,unopinionated, minimalist web framework for
Node.js Fast,unopinionated, minimalist
12.
$ npm install
--save express EXPRESS GETTINGSTARTEDWITHEXPRESS
13.
EXPRESS GETTINGSTARTEDWITHEXPRESS const express =
require('express') const app = express() app.get('/', (request, response) => { response.send('Hello, Bandung!') }) app.listen(5432, () => { console.log('Magic happen at http: //localhost:5432') })
14.
EXPRESS WHATEXPRESSGIVESUS Middleware Routing Extends Request
,Response View Layer
15.
MIDDLEWARE
16.
EXPRESS INEXPRESS,EVERYTHINGISMIDDLEWARE HTTP Request HTTP Response Client Server (request,
response, next) => {} (request, response, next) => {}
17.
EXPRESS MIDDLEWAREEXAMPLE app.use((request, response, next)
=> { console.log('Satu') next() }) app.use((request, response, next) => { console.log('Dua') next() }) app.get('/', (request, response) => { response.send(‘Halo, Bandung!') })
18.
EXPRESS 3RDPARTYMIDDLEWARE Session Logger JSON Web Token
express-sass-middleware
19.
ROUTING
20.
EXPRESS ROUTINGEXAMPLE localhost:5432/ localhost:5432/echo GET POST GET app.get(‘/‘, handleGetRoot) app.get(‘/echo/name’, handleGetEcho) app.post(‘/echo’,
handleGetEcho) localhost:5432/echo/fox
21.
EXPRESS ROUTINGEXAMPLE const handleGetRoot =
(request, response) => { response.send('This is / route') } const handleGetEcho = (request, response) => { response.send(`This is /echo route. Hello ${request.params.name}`) } app.get('/', handleGetRoot) app.get('/echo/:name', handleGetEcho)
22.
EXTENDINGREQUESTAND RESPONSE
23.
EXPRESS EXTENDSEXAMPLES app.get('/hacktiv8', (req, res)
=> { res.redirect('https: //hacktiv8.com/') }) app.get('/sending', (req, res) => { res.sendFile('/Users/riza/Music/cool_song.mp3') }) http://expressjs.com/en/api.html
24.
HANDLINGVIEWLAYER
26.
$ npm install
--save hbs EXPRESS INSTALLINGVIEWENGINE
27.
EXPRESS VIEWENGINESETUP const path =
require('path') const express = require('express') const app = express() // view engine setup app.set('views', path.join(__dirname, 'views')) app.set('view engine', 'hbs') app.get('/', (req, res) => { res.render('index', {data: 'Hello, Bandung!'}) }) app.listen(5432, () => { console.log('Magic happen at http: //localhost:5432') })
28.
EXPRESS VIEWENGINESETUP <!DOCTYPE html> <html> <head> <meta http-equiv="content-type"
content="text/html; charset=utf-8"> <title>Welcome to Express </title> </head> <body> <h1>{{ data }} </h1> </body> </html>
29.
Let’sBuildSomethign WithExpress Image credits: egghead.io