1.0.31 • Published 5 years ago

koa-symphony v1.0.31

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

koa-symphony

start

基于 koa2的框架。 采用三层架构,mvc思想,分离视图层和业务处。 集成了twig.js,webpack4,sequelize等组件。 方便了数据库查询,以及模版渲染

请使用 https://www.npmjs.com/package/cli-koa 生成项目

yarn global add cli-koa
cli-koa init <projectName>

目录及参数说明

config: 配置文件目录
config/db.json: 数据库配置文件
config/parameters.js:项目配置文件

中间件的优先级

优先级越小,越早执行

    LestenerMiddleware: 用户权限鉴权 优先级10
    BodyParserMiddleware: 前台查询参数处理 优先级 0
    RouterMiddleware: 路由处理 优先级50
    StaticMiddleware: 静态资源文件处理 优先级0

安装 ImageMagick

安装说明: http://www.imagemagick.org/script/install-source.php
wget -c https://imagemagick.org/download/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz
cd 解压目录
./configure
make
sudo make install
sudo ldconfig /usr/local/lib
/usr/local/bin/convert logo: logo.gif

ImageMagick 依赖

wget http://www.imagemagick.org/download/delegates/zlib-1.2.11.tar.gz
tar zvxf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make
make install

wget http://www.imagemagick.org/download/delegates/libpng-1.6.31.tar.gz
tar zvxf libpng-1.6.31.tar.gz
cd libpng-1.6.31/
./configure
make
make install

convert -list format
查看当前支持文件类型

ubuntu安装

sudo apt-get update
sudo apt-get install graphicsmagick
sudo apt-get install imagemagick
1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago