舉報

會員
Beginning API Development with Node.js
Usingthesameframeworktobuildbothserverandclient-sideapplicationssavesyoutimeandmoney.ThisbookteachesyouhowyoucanuseJavaScriptandNode.jstobuildhighlyscalableAPIsthatworkwellwithlightweightcross-platformclientapplications.ItbeginswiththebasicsofNode.jsinthecontextofbackenddevelopment,andquicklyleadsyouthroughthecreationofanexampleclientthatpairsupwithafullyauthenticatedAPIimplementation.Bytheendofthebook,you’llhavetheskillsandexposurerequiredtogethands-onwithyourownAPIdevelopmentproject.
目錄(79章)
倒序
- 封面
- Title Page
- Copyright and Credits
- Beginning API Development with Node.js
- Packt Upsell
- Why Subscribe?
- PacktPub.com
- Contributors
- About the Author
- About the Reviewer
- Packt Is Searching for Authors like You
- Preface
- Who This Book Is For
- What This Book Covers
- To Get the Most out of This Book
- Download the Example Code Files
- Conventions Used
- Get in Touch
- Reviews
- Introduction to Node.js
- The Basics of Node.js
- Applications of Node.js
- Activity: Running Basic Node.js Code
- The Module System
- Application Modularization
- Module Categories
- Built-In Modules
- npm – Third-Party Module Registry
- Scanning for node_modules
- Handy npm Commands
- Local Modules
- Activity: Using a Third-Party Package for the Previous math.js Code
- Asynchronous Programming with Node.js
- Callbacks
- Promises
- Async/Await
- Activity: Transforming a Text File Using an Async Function
- Summary
- Building the API - Part 1
- Building a Basic HTTP Server
- Setting up Hapi.js
- Exercise 1: Building a Basic Hapi.js Server
- Using an API Client
- Returning JSON Strings
- Exercise 2: Returning JSON
- Using nodemon for Development Workflow
- Exercise 3: Using nodemon
- Setting up the Logger
- Exercise 4: Setting up the Logger
- Understanding Requests
- A Look at HTTP Request Methods
- Exercise 5: Getting a List of Resources
- Exercise 6: Getting a Specific Resource
- Exercise 7: Creating a New Todo with POST
- Exercise 8: Updating a Resource with PUT
- Exercise 9: Updating with PATCH
- Exercise 10: Deleting a Resource with DELETE
- Request Validation
- Exercise 11: Validating a Request
- Summary
- Building the API - Part 2
- Working with the DB Using Knex.js
- Exercise 12: Setting up the Database
- Exercise 13: Connecting to the Database
- Exercise 14: Creating a Record
- Exercise 15: Reading from the Database
- Exercise 16: Updating a Record
- Exercise 17: Deleting a Record
- Exercise 18: Cleaning up the Code
- Authenticating Your API with JWT
- Exercise 19: Securing All the Routes
- Exercise 20: Adding User Authentication
- Authentication versus Authorization
- Exercise 21: Implementing Authorization
- Testing Your API with Lab
- Exercise 22: Writing Basic Tests with Lab
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-07-23 17:22:00
推薦閱讀
- 計算機網絡與通信(第2版)
- 黑客攻防實戰技術完全手冊:掃描、嗅探、入侵與防御
- SEO 20日
- 網絡創新指數研究
- JBoss EAP6 High Availability
- Spring Cloud微服務架構進階
- 計算機網絡與通信(第2版)
- 射頻通信系統
- 區塊鏈輕松上手:原理、源碼、搭建與應用
- 城域網與廣域網(第2版)
- Microservice Patterns and Best Practices
- 網絡基礎與網絡管理項目化教程
- 網絡環境中基于用戶視角的信息質量評價研究
- Working with Legacy Systems
- 網管第一課:網絡操作系統與配置管理
- 工業互聯網創新實踐
- 物聯網工程概論
- 網絡空間全球治理觀察
- 5G技術核心與增強:從R15到R17
- ReasonML Quick Start Guide
- 企業網絡組建與維護項目式教程
- WLAN技術問答
- 計算機網絡應用基礎(第3版)
- VMware vSphere企業運維實戰
- 邊做邊學物聯網技術
- 走進下一代互聯網:改變你生活的物聯網
- Igor Pro實用教程:圖表繪制、數據分析與程序設計
- 下一代互聯網
- 網絡信息安全實訓
- 大型網站運維:從系統管理到SRE