Egg+React+Docker
2020-10-15 17:41:35 0 举报
AI智能生成
Egg+React+Docker
作者其他创作
大纲/内容
前端开发
and
react-document-title
classnames
react-container-query
umi
roadhog
next.js
插件
umi-request
dva
redux
redux-saga
react-router
fetch
dva-loading
bable
babel-plugin-dva-hmr
mockjs
Less
CSS
盒模型
display
block
inline
none
visibility
box-sizing
position
static
relative
fixed
absolute
float
Docker
命令
search
pull
ps
images
run
-p
--name
rm
logs
update
--restart=always
exec
volume
egg
Router
场景
router.verb('path-match', app.controller.action);
router.verb('router-name', 'path-match', app.controller.action);
router.verb('path-match', middleware1, ..., middlewareN, app.controller.action);
router.verb('router-name', 'path-match', middleware1, ..., middlewareN, app.controller.action);
verb
router.head - HEAD
router.options - OPTIONS
router.get - GET
router.put - PUT
router.post - POST
router.patch - PATCH
router.del
router.redirect
router-name
path-match
middleware1
controller
app.controller.user.fetch
'user.fetch'
Controller
自定义 Controller 基类
参数验证
获取 HTTP 请求参数
query
body
获取上传的文件
header
Cookie
Session
插件
egg-sequelize
Sequelize
类型
DOUBLE
安装 sequelize-cli
初始化 Migrations 配置文件和目录
编写项目的第一个 Migration 文件来创建我们的一个 users 表
执行 migrate 进行数据库变更
如果有问题需要回滚,可以通过 `db:migrate:undo` 回退一个变更
可以通过 `db:migrate:undo:all` 回退到初始状态
parameter
rule(规则)
配置
required
type
convertType
default
类型
int
max
min
number
date
dateTime 或 datetime
id
boolean 或 bool
string
max
min
allowEmpty
format
email
password
compare
url
enum
values
object
rule
array
缩写
'int'
'int?'
'integer'
'number'
'date'
'dateTime'
'id'
'boolean'
'bool'
'string'
'string?'
'email'
'password'
'object'
'array'
[1, 2]
/\d+/
egg-router-plus
onerror
Linux(CentOS)
Shell
useradd
passwd
mv
su
工具
yum
rz
sz
zip
unzip
typescript
开发工具
Sublime Text
Visual Studio Code
插件
Auto Close Tag
Auto Rename Tag
Beautify
DvaJs Snippets
adcc
adcpc
adcrpc
adcnrpc
admodel
admrd
admrdm
admrd
admef
admefm
adcs
adcsfp
vscode-icons
Windows Power Shell
Linux shell
IDEA
New Project
Java
JBoss
Java EE
Thymeleaf
Google App Engine
Groovy
Hibernate
JavaEE Persistence
Kotlin/JVM
OSGi
SQL Support
WebServices Client
Java Enterprise
JBoss
Clouds
Spring
Java Fx
Android
InteLiJ Platform Plugin
Spring lnitializr
Maven
Gradle
Groovy
Grails
Application Forge
Kotlin
Static Web
Static Web
HTML5 Boilerplate
React App
Foundation
Bootstrap
React Native
AngularJS
Angular CLI
Node.js and NPM
nodejs
expressjs
Flash
Empty Project
Javascript
ES6
Class 的基本语法
extends
constructor
super
Promise 对象
Generator 函数的语法
一是,function关键字与函数名之间有一个星号
二是,函数体内部使用yield表达式,定义不同的内部状态
Iterator 和 for...of 循环
基础类型
Array
find
includes
模块
AMD
RequireJS
CMD
SeaJS
CommonJs
NodeJs
npm
开发包
create-react-app
react-app-rewired
命令
npm search
npm install
npm config
npm list
配置
devDependencies
dependencies
yarn
React
JSX
render
props
State
setState({})
setState(()=>{})
生命周期
componentWillUnmount
componentDidMount
事件处理
preventDefault
bind
Cpmponent
ReactDOM.render
class
extends
React.Component
Route
React Router
react-router-dom
BrowserRouter
Route
HashRouter
Link
Switch
redux
createStore(reducer, [preloadedState], enhancer)
reducer
state
Action
[preloadedState]
enhancer
Store
getState()
dispatch(action)
subscribe(listener)
replaceReducer(nextReducer)
combineReducers
reducers (Object)
applyMiddleware
...middlewares (arguments)
bindActionCreators
actionCreators (Function or Object)
dispatch (Function)
compose
(arguments)
react-redux
<Provider>
connect
[mapStateToProps(state, [ownProps]): stateProps] (Function)
mapDispatchToProps(Object or Function)
mergeProps(Function)
options(Object)
connectAdvanced
createProvider
redux-saga
effects
call
put
redux-logger
WebPack
loader
style-loader
css-loader
file-loader
csv-loader
xml-loader
plugins
html-webpack-plugin
clean-webpack-plugin
收藏
0 条评论
下一页