Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Web Service Menggunakan ExpressJS
Search
rifqi alfian
September 01, 2014
Technology
0
260
Web Service Menggunakan ExpressJS
Demo Web Service Menggunakan ExpressJS - Meetup JogjaJS. Tanggal 28 Agustus 2014. Kantor Qiscus
rifqi alfian
September 01, 2014
Tweet
Share
More Decks by rifqi alfian
See All by rifqi alfian
Techtalk JDV : Pengenalan Socket.io
merembablas
0
2.3k
Techtalk JDV : Pengenalan Redis
merembablas
0
2.4k
GCDC - HTML5
merembablas
0
190
GCDC - Google Map
merembablas
0
210
Techtalk JDV : Pengenalan Elasticsearch
merembablas
1
2.5k
Other Decks in Technology
See All in Technology
Infrastructure as Prompt実装記 〜Bedrock AgentCoreで作る自然言語インフラエージェント〜
yusukeshimizu
1
120
結局QUICで通信は速くなるの?
kota_yata
6
6.9k
MCP認可の現在地と自律型エージェント対応に向けた課題 / MCP Authorization Today and Challenges to Support Autonomous Agents
yokawasa
5
2.4k
Serverless Meetup #21
yoshidashingo
1
130
Claude Codeから我々が学ぶべきこと
oikon48
10
2.8k
「Roblox」の開発環境とその効率化 ~DAU9700万人超の巨大プラットフォームの開発 事始め~
keitatanji
0
120
専門分化が進む分業下でもユーザーが本当に欲しかったものを追求するプロダクトマネジメント/Focus on real user needs despite deep specialization and division of labor
moriyuya
1
1.3k
마라톤 끝의 단거리 스퍼트: 2025년의 AI
inureyes
PRO
1
750
Instant Apps Eulogy
cyrilmottier
1
110
React Server ComponentsでAPI不要の開発体験
polidog
PRO
0
260
✨敗北解法コレクション✨〜Expertだった頃に足りなかった知識と技術〜
nanachi
1
720
事業特性から逆算したインフラ設計
upsider_tech
0
120
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
45
7.6k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
47
9.6k
Navigating Team Friction
lara
188
15k
Facilitating Awesome Meetings
lara
54
6.5k
For a Future-Friendly Web
brad_frost
179
9.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Practical Orchestrator
shlominoach
190
11k
Gamification - CAS2011
davidbonilla
81
5.4k
Six Lessons from altMBA
skipperchong
28
3.9k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Transcript
Web Service Menggunakan Express.js 29-08-2014, JogjaJS
@merembablas mootuts.com Rifqi Alfian
REST + ExpressJS Enak Ga? Restify Hapi Loopback
Fitur ExpressJS : Minimalis 1. HTTP Wrapper 2. Routing 3.
Middleware
Sederhana~ var express = require('express'); var app = express(); app.get('/hello.txt',
function(req, res){ res.send('Hello World'); }); var server = app.listen(3000, function() { console.log('Listening on port %d', server.address().port); });
HTTP Wrapper : Request Object - HTTP Request Header -
Cookie - Query - Params
HTTP Wrapper : Response Object - HTTP Response Header -
HTTP Response Status - Cookie - Download File
Routing app.VERB('/buku', function(req, res) { }); Atau var router =
express.Router(); router.VERB('/, function(req, res, next) { }); app.use('/buku', router);
Middleware function logErrors(err, req, res, next) { console.error(err.stack); next(err); }
app.use(logErrors);
Demo https://github.com/merembablas/demo-webservice-jogjajs