Skip to Content
한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
book

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

by 한선용, 이선 브라운
May 2021
Beginner to intermediate
448 pages
9h 47m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
270
한 권으로 끝내는 Node & Express
그리고
meadowlark
.
js
에서
API
를 불러옵니다.
app.get(‘/api/vacations’, handlers.getVacationsApi)
app.get(‘/api/vacation/:sku’, handlers.getVacationBySkuApi)
app.post(‘/api/vacation/:sku/notify-when-in-season’,
handlers.addVacationInSeasonListenerApi)
app.delete(‘/api/vacation/:sku’, handlers.requestDeleteVacationApi)
지금까지 책을 읽었다면 어려울 건 하나도 없습니다. 데이터베이스 추상화 레이어를 사용하고
있으므로 몽고
DB
를 쓰든
PostgreSQL
을 쓰든 상관없습니다. 데이터베이스에 따라 사소하고
중요하지 않은 부분이 보일 수 있지만 삭제해도 무방합니다.
requestDeleteVacationsApi
는 독자의 연습 문제로 남겨두려고 합니다. 이 기능은 구현 방
법이 너무 다양하기 때문입니다. 가장 단순한 접근법은 패키지 스키마에 ‘삭제 요청됨’ 필드를
만들고,
API
가 호출됐을 때 이 필드에 이메일과 노트가 남도록 업데이트하는 방법이 있습니다.
아니면 별도의 테이블을 만들고 삭제 요청이 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한성용, 이선 브라운

Publisher Resources

ISBN: 9791162244227