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
自作LLM Native GORM Pluginで実現する AI Agentバックテスト基盤構築
po3rin
2
240
AI ReadyなData PlatformとしてのAutonomous Databaseアップデート
oracle4engineer
PRO
0
150
Sidekiq その前に:Webアプリケーションにおける非同期ジョブ設計原則
morihirok
17
7.2k
SOC2取得の全体像
shonansurvivors
1
350
Optuna DashboardにおけるPLaMo2連携機能の紹介 / PFN LLM セミナー
pfn
PRO
1
840
業務自動化プラットフォーム Google Agentspace に入門してみる #devio2025
maroon1st
0
180
OpenAI gpt-oss ファインチューニング入門
kmotohas
2
880
Why React!?? Next.jsそしてReactを改めてイチから選ぶ
ypresto
10
4.3k
AI Agentと MCP Serverで実現する iOSアプリの 自動テスト作成の効率化
spiderplus_cb
0
460
非エンジニアのあなたもできる&もうやってる!コンテキストエンジニアリング
findy_eventslides
3
890
全てGoで作るP2P対戦ゲーム入門
ponyo877
3
1.3k
【新卒研修資料】LLM・生成AI研修 / Large Language Model・Generative AI
brainpadpr
23
16k
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
For a Future-Friendly Web
brad_frost
180
9.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
Building Applications with DynamoDB
mza
96
6.6k
Code Review Best Practice
trishagee
72
19k
Thoughts on Productivity
jonyablonski
70
4.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The Language of Interfaces
destraynor
162
25k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
20k
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