Hubwiz.com
|
Online Course
|
API Manual
eggjs API Manual
Guide(44)
Section(187)
Guide
egg - Born to build better enterprise frameworks and apps
Framework Built-in Objects - Born to build better enterprise frameworks and apps
Router - Born to build better enterprise frameworks and apps
Scheduled Tasks - Born to build better enterprise frameworks and apps
Middleware - Born to build better enterprise frameworks and apps
Structure - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
Extend EGG - Born to build better enterprise frameworks and apps
controller - Born to build better enterprise frameworks and apps
Runtime Environment - Born to build better enterprise frameworks and apps
Service - Born to build better enterprise frameworks and apps
Configuration - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
Loader - Born to build better enterprise frameworks and apps
Plugin Development - Born to build better enterprise frameworks and apps
Multi-Process Development Model Enhancement - Born to build better enterprise frameworks and apps
Framework Development - Born to build better enterprise frameworks and apps
Cookie and Session - Born to build better enterprise frameworks and apps
Exception Handling - Born to build better enterprise frameworks and apps
Logger - Born to build better enterprise frameworks and apps
Unit Testing - Born to build better enterprise frameworks and apps
Security - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
I18n Internationalization - Born to build better enterprise frameworks and apps
View Template Rendering - Born to build better enterprise frameworks and apps
HttpClient - Born to build better enterprise frameworks and apps
Multi-Process Model and Inter-Process Communication - Born to build better enterprise frameworks and apps
Deployment - Born to build better enterprise frameworks and apps
Quick Start - Born to build better enterprise frameworks and apps
What is Egg? - Born to build better enterprise frameworks and apps
Egg and Koa - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
Progressive Development - Born to build better enterprise frameworks and apps
Assets - Born to build better enterprise frameworks and apps
Tutorials - Born to build better enterprise frameworks and apps
Assets - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
MySQL - Born to build better enterprise frameworks and apps
egg - Born to build better enterprise frameworks and apps
Build RESTful API - Born to build better enterprise frameworks and apps
Contribution Guide - Born to build better enterprise frameworks and apps
FAQ - Born to build better enterprise frameworks and apps
Section
Application
Context
Request & Response
Controller
Service
Helper
Config
Logger
Subscription
How to Define Router
Router config in detail
Router in Action
Develop Scheduled Tasks
Manually Execute Scheduled Tasks
Extend Scheduled Task Type
Writing Middleware
Using Middleware
Using Middleware in Framework and Plugin
Using Middleware in Router
Default Framework Middleware
Use Koa's Middleware
General Configuration
title: Plugin
Why plugins?
Using plugins
Plugin configuration
Plugin list
Developing a plugin
Application
Context
Request
Response
Helper
Extend according to environment
What is Controller
How To Write Controller
HTTP Basics
Acquire HTTP Request Parameters
Parameter Validation
Using Service
Sending HTTP Response
Configure Runtime Environment
Access to the runtime environment in Application
Configurations of runtime environment
Difference from NODE_ENV
Customize environment
Difference from Koa
Usage Scenario
Defining Service
Using Service
Configuration result
Title: View Plugin Development
Plugin directory structure
Plugin naming convention
View base class
Plugin configuration
Application, Framework and Plugin
loadUnit
Extend Loader
Loader API
Plugin Development
Directory of Plugin
Dependencies Management of Plugins
What can plugin do
Why do not use the npm package name as the plugin name?
core idea
Client interface type abstraction
exception handling
protocol and time series to invoke
specific use
the configuration items related to cluster-client in the framework
Framework And Multiprocess
How To Customize A Framework
The principle of Launch
Framework Testing
Cookie
Session
Exception Capture
Egg takes charge of exceptions
Create your universal exception handler
404
Location
Type of Logs
Printing
Encoding
Log Level
Create your logger
Log Sharding
Performance
Why Unit Testing
Test Framework
Assertion Library
Test Rule
Test Preparation
Testing Order
Asynchronous Test
Controller Test
Service Test
Extend Test
Mock Function
Sample Code
Concept of Web Security
Prevention of security threat XSS
Prevention of Security Threat CSRF
Prevention of Security Threat XST
Prevention of Security threats phishing attacks
Prevention of Security threats HPP
man-in-middle attack with HTTP / HTTPS
SSRF Protection
Other build-in security tools
Default Language
Switch Language
Writing I18n Multi-language Documents
Getting Multi-language Texts
Configure view plugins
Render Page
Locals
Helper
Security
Using HttpClient by app
Using HttpClient by Context
Basic HTTP Request
Advanced HTTP request
options Parameters in Detail
Debugging Aid
Known issues
Global request and response events
Example
Multi-Process Model of the Framework
Inter-Process Communication(IPC)
IPC in Practice
More Complexed Scenario
Build
Deploy
Prerequisites
the Quick Way
Step by Step
Conclusions
Design principles
Differences between community framework
features
Asynchronous programming model
Koa
Egg inherits from Koa
Title: Code Style Guide
Classify
Private properties & Lazy Initialization
Title: Resources
Frameworks
Community Articles
Tools
Getting Started
Prototype of Plugin
Extract to Independent Plugin
Finally: A Framework
Write in the end
Boilerplate Type Description
Template Engines
Databases
title: Socket.IO
install egg-socket.io
Using egg-socket.io
Examples
Reference Links
egg-mysql
Service layer
Writing CRUD
Implementation of SQL statement
Transaction
Literal
Title: Passport
Using egg-passport
Using Passport Ecosystem
How to develop an egg-passport plugin
Response Formatting
Getting Started
Testing
Reporting New Issues
Documentation
Submitting Code
Release
How to feedback efficiently?
Why my config don't work?
Where are my log files in prod environment?
Why not choose PM2 as process management tool?
How to resolve csrf error?
In local development environment, why is worker process not restarted automatically when files are modified?