- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/chungchi300/safe-start-koa2
- 软件文档: https://github.com/chungchi300/safe-start-koa2/blob/master/README.md
- 官方下载: https://github.com/chungchi300/safe-start-koa2
软件介绍
简单直接的的 Koa2 的脚手架
迅速开发 - 自动热重启服务 + 测试驱动开发模式 + 重置数据库(by cli)
生产就绪 - 有node 和 npm 马上可以部署,不用安裝任何东西
从众- 80%人会做的设计决定(design decision)和80%人会使用的库(library)
结构简单 - routes + MVC + 中间件(Middleware)
没有魔法 - 可由app.js 开始 , 25 分钟读懂的代码
特别之处
没有babel配置(Node 9)
Nodemon 自动热重启服务
自带会员系统 (可拆开)(Passport js)
邮件服务 (Sparkpost)
对象关系映射(ORM) (Sequelize)
多个配置(/.env production.json,test.json,development.json)
koa-router
技术堆栈
Node js
koa2
Sequelize
Mysql
安装并运行
1. git clone git@github.com:chungchi300/safe-start-koa2.git //更改 database 2. src/config/default.js (Mysql) 3. npm i && npm run reset && npm start
开发模式
文件修改后自动重启 Node.js 自动热重启服务
npm run start
测试驱动开发模式
Jest
npm run test
线上模式
pm2
npm run production
Is Parallel Programming Hard, And, If So, What Can You Do About
Paul E. McKenney
The purpose of this book is to help you understand how to program shared-memory parallel machines without risking your sanity.1 By describing the algorithms and designs that have worked well in the pa......一起来看看 《Is Parallel Programming Hard, And, If So, What Can You Do About 》 这本书的介绍吧!
