chungchi300 / Eaglet
Licence: mit
最简單直接的 Koa2 的脚手架
Stars: ✭ 118
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Eaglet
React Ssr
React 服务端渲染(SSR),react + redux + koa2 + sequelize + mysql全栈项目(Full Stack)
Stars: ✭ 205 (+73.73%)
Mutual labels: mysql, koa2, pm2
React Blog
react hooks + koa2 + sequelize + mysql 构建的个人博客。具备评论、通知、上传文章等等功能
Stars: ✭ 530 (+349.15%)
Mutual labels: sequelize, mysql, koa2
Sequelize
An easy-to-use and promise-based multi SQL dialects ORM tool for Node.js
Stars: ✭ 25,422 (+21444.07%)
Mutual labels: mysql, sqlite, sequelize
Sequelize Auto Migrations
Migration generator && runner for sequelize
Stars: ✭ 233 (+97.46%)
Mutual labels: sequelize, mysql, sqlite
Cykspace Node
博客后台服务~~ 👉👉 http://www.cykspace.com
Stars: ✭ 23 (-80.51%)
Mutual labels: sequelize, mysql, koa2
Servicestack.ormlite
Fast, Simple, Typed ORM for .NET
Stars: ✭ 1,532 (+1198.31%)
Mutual labels: mysql, sqlite
Sequelize Bookmarks
Sequelize ORM application with Express 4 server, Webpack and Vue.js
Stars: ✭ 85 (-27.97%)
Mutual labels: sequelize, mysql
Sql Kit
*️⃣ Build SQL queries in Swift. Extensible, protocol-based design that supports DQL, DML, and DDL.
Stars: ✭ 115 (-2.54%)
Mutual labels: mysql, sqlite
Qtl
A friendly and lightweight C++ database library for MySQL, PostgreSQL, SQLite and ODBC.
Stars: ✭ 92 (-22.03%)
Mutual labels: mysql, sqlite
Prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite & MongoDB (Preview)
Stars: ✭ 18,168 (+15296.61%)
Mutual labels: mysql, sqlite
Nodefony Starter
Nodefony Starter Node.js Framework
Stars: ✭ 95 (-19.49%)
Mutual labels: sequelize, pm2
Xeus Sql
xeus-sql is a Jupyter kernel for general SQL implementations.
Stars: ✭ 85 (-27.97%)
Mutual labels: mysql, sqlite
Chloe
A lightweight and high-performance Object/Relational Mapping(ORM) library for .NET --C#
Stars: ✭ 1,248 (+957.63%)
Mutual labels: mysql, sqlite
Electrocrud
Database CRUD Application Built on Electron | MySQL, Postgres, SQLite
Stars: ✭ 1,267 (+973.73%)
Mutual labels: mysql, sqlite
Sqlite3 To Mysql
Transfer data from SQLite to MySQL
Stars: ✭ 79 (-33.05%)
Mutual labels: mysql, sqlite
Ugin
UGin is an API boilerplate written in Go (Golang) with Gin Framework.
Stars: ✭ 110 (-6.78%)
Mutual labels: mysql, sqlite
typescript,type orm,
最简单直接的 Koa2 的脚手架 - eaglet
哲学
我不想知道你的哲学,但我想立即开始并完成工作
- 迅速开发 - 自动热重启服务 + 测试驱动开发模式 + 重置数据库(by cli)
- 生产就绪 - 有 node 和 npm 马上可以部署,不用安装任何东西
- 从众 - 80%人会做的设计决定(design decision)和 80%人会使用的库(library)
- 结构简单 - routes + MVC + 中间件(Middleware)
- 没有魔法 - 可由 app.js 开始 , 25 分钟读懂的代码(易用,易写,易看,易学的车子结构应用和实践,用了对 node js 和 koa2 必有更多的理解)
特别之处
- 没有 babel 配置(Node 9)
- Nodemon 自动热重启服务
- 自带会员系统 (可选)(Passport js)
- 邮件服务 (Sparkpost)
- 对象关系映射(ORM) (Sequelize)
- 多个配置(/.env production.json,test.json,development.json)
- koa-router
定位
- koa 2 入门至中级䦕发者
- 1-5 小团队快速开发
- 小微 IT 企业
P.S 如果你的开发团队人数大于 10 人且人人都是 koa 大神,eggjs 会是更适合你
技术堆栈
- Node js
- koa2
- Sequelize
- Mysql/SQlite
安装并运行
1. git clone [email protected]:chungchi300/eaglet.git
//更改 database
2. src/config/default.js (default sqlite but suggest mysql in production)
3. npm i && npm run reset && npm start
访问
测试服务器
开发模式
文件修改后 nodemon立即自动重启 Node.js 服务
npm run start
测试驱动开发模式
文件修改后 Jest立即自动重新运行所有测试
npm run test
线上模式
使用 pm2 是 node 进程管理器,如果 node 进程崩溃立即自动重启进程
npm run production
配置&&部署线上
默认配置文件位于 src/config/default.js.
.env 配置会覆盖(override) 默认配置.
e.g
.env/production.json 覆盖 src/config/default.js 配置
线上 3000 port 转 80
谢谢
使用部分代码和概念于
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].