舉報

會員
Server Side development with Node.js and Koa.js Quick Start Guide
Everydeveloperwantstobuildmodularandscalablewebapplications.ModernversionsofJavaScripthavemadethispossibleinNode.js,andKoaisaNode.jsframeworkthatmakesiteasy.ThisbookistheidealintroductionforJavaScriptdeveloperswhowanttocreatescalableserversideapplicationsusingNode.jsandKoa.js.ThebookshowsyouhowKoacanbeusedtostartprojectsfromscratch,registercustomandexistingmiddleware,readrequests,andsendresponsestousers.WewillexplorethecoreconceptsinKoa,suchaserrorhandling,logging,andrequestandresponsehandling.WewilldiveintonewconceptsinJavaScriptdevelopment,andseehowparadigmssuchasasync/awaithelpwithmodernNode.jsapplicationdevelopment.Bytheendofthisbook,youwillbebuildingrobustwebapplicationsinKoausingmoderndevelopmentparadigmsandtechniquesofNode.jsdevelopment.
目錄(111章)
倒序
- coverpage
- Title Page
- About Packt
- Why subscribe?
- Packt.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
- Download the color images
- Code in action
- Conventions used
- Get in touch
- Reviews
- Introducing Koa
- Technical requirements
- What is Koa?
- What can you do with Koa?
- Why choose Koa?
- When you should not use Koa
- Koa versus Express
- How can this book help you understand Koa better?
- Summary
- Getting Started with Koa
- Technical requirements
- Modern JavaScript
- A primer on Node
- What is async… await?
- The promise class
- Introducing async
- Introducing await
- Installing Koa
- Using Babel
- Starting a server in Koa
- Summary
- Koa Core Concepts
- Technical requirements
- The application object
- Useful application methods
- Settings
- The context object
- Context object API
- Aliases
- The request object
- Content negotiation
- The response object
- Middleware
- Cascading in Koa
- Defining middleware
- Registering middleware
- Common middleware
- Summary
- Handling Errors in Koa
- Technical requirements
- Catching errors in Koa
- Koa's default error handler
- Emitting errors
- Error event listener
- Throwing HTTP errors
- Writing error handlers
- Summary
- Building an API in Koa
- Technical requirements
- Project setup
- Initialization
- Installing dependencies
- Structure
- Building the application
- Starting the server
- Using Nodemon
- Connecting to a database
- Creating data models
- Setting up the router
- Setting up a logger
- Creating contact endpoints and controller actions
- Retrieving all contacts
- Storing new contacts
- Retrieving a single contact
- Updating a contact
- Deleting a contact
- Validating requests
- Useful notes
- Summary
- Building an Application in Koa
- Technical requirements
- About the application
- Setting up a project
- Installing dependencies
- Project structure
- Building the application
- Starting the server
- Connecting to the database
- Creating data models
- The user model
- The post model
- Setting up the router
- Setting up the views
- Using partials
- Setting up sessions
- Handling authentication
- User registration and login
- Authentication middleware
- Creating controller functions
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-06-10 18:57:26
推薦閱讀
- 從零開始構建企業級RAG系統
- Python數據可視化:基于Bokeh的可視化繪圖
- Vue.js快跑:構建觸手可及的高性能Web應用
- MongoDB for Java Developers
- Python Geospatial Development(Second Edition)
- Full-Stack Vue.js 2 and Laravel 5
- C語言課程設計
- 從0到1:Python數據分析
- Learning Docker Networking
- 后臺開發:核心技術與應用實踐
- 從零開始:C語言快速入門教程
- Java自然語言處理(原書第2版)
- Learning Shiny
- Building UIs with Wijmo
- ArcPy and ArcGIS(Second Edition)
- C++面向對象程序設計
- Learning Redux
- 3D Printing Designs:Design an SD Card Holder
- C# 10核心技術指南
- PHP高性能開發:基礎、框架與項目實戰
- Learning IBM Bluemix
- Python High Performance(Second Edition)
- Getting Started with SpriteKit
- 大數據可視化編程和應用
- SignalR Blueprints
- Unity 3D腳本編程與游戲開發
- Python從入門到精通
- openGauss數據庫開發實戰
- Mastering Application Development with Force.com
- Java從入門到項目實戰(全程視頻版)