Comments (19)
好,今天在去南京的路上写一下。
from egg.
egg-mysql可用,有测试覆盖
from egg.
@jtyjty99999 嗯,说的就是将 README 完善了。
from egg.
恩,插件把 readme 完善详细,有些还是挺简单的。
from egg.
@jtyjty99999 @fengmk2 @popomore egg-mysql中只是test和fixtures,希望能有一个完整可以跑通的MVC标准例子,能体现层次结构、各层次调用关系、以及模板渲染,我们如果马上用这个开启一个新项目,在此基础上修改更快更容易上手。 辛苦了 谢谢 :)
from egg.
@atian25 他说的应该是我们昨晚说的那个framework的simple
from egg.
@jtyjty99999 framework 和 simple 这两个 boilerplate 不希望有太多内容, 这是一个骨架来着.
他的需求我们可以几种方案实现:
- 直接 egg/example/mysql , 但是这样 egg 主库多了很多 devDeps
- 做一个 boilerplate, 但不建议放到 egg-boilerplate-framework , 做个 egg-boilerplate-common ?
- egg-init 支持选项, simple 的时候提供常用插件选择来生成
from egg.
@atian25 我觉得可以作为“快速开发一个应用框架”的实例,讲如何init一个框架模板,之后即成几个插件
from egg.
@zhoudaqing mysql 插件的使用文档完善了 https://github.com/eggjs/egg-mysql#egg-mysql
from egg.
@fengmk2 看到了,原来这个是基于ali-rds插件的;通过egg-init初始化创建项目能顺利运行起来,为何egg-boilerplate-simple、egg-boilerplate-framework在windows环境均无法启动呢?
from egg.
。。。 报错单独提个新 ISSUE 上来,我看看。
from egg.
F:\bf\egg-boilerplate-simple>npm run dev
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\Program Files\nodejs\node.exe" "C:\Users\LangShu\AppData
\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "dev"
npm ERR! node v4.5.0
npm ERR! npm v3.10.6
npm ERR! missing script: dev
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! F:\bf\egg-boilerplate-simple\npm-debug.log
from egg.
这是个模板啊,本来就不是让你直接运行的。。egg-init会拉取这个进行渲染
from egg.
晚点加个说明吧。。。
from egg.
这个 issue 可以 close 了吧
from egg.
@fengmk2 @atian25 @jtyjty99999 @popomore 谢谢各位
from egg.
eggjs/egg-boilerplate-simple#10
加了
from egg.
同感觉得官方egg-mysql的例子太少了,mysql的查询方式多了个去!
from egg.
@zhoudaqing mysql 插件的使用文档完善了 https://github.com/eggjs/egg-mysql#egg-mysql
太简单了 比方 where 里面不等于怎么写呢
from egg.
Related Issues (20)
- GET 请求带 gzip body 会导致非法异常 HOT 4
- multipart多文件上传 HOT 1
- egg_amqplib 连接中断后导致程序异常退出 HOT 1
- 七牛云拉取文件始终返回404 HOT 10
- 使用ts时tsconfig.json文件配置module只能使用CommonJS,使用ES会报错 HOT 1
- 日志切割后不是 .log 后缀, vscode 不高亮啊
- 国际化用voerkai18n实现,在中间件处理切换语言时,yarn test测试环境不生效,请问会不会是eggjs影响的? HOT 1
- 如果使用AsyncLocalStorage,如何能够在不被Egg管理的类中,也能正确地拿到上下文对象 HOT 12
- 如何升级babel 7?
- jsx as tpl HOT 1
- new version available: 2.3.1 → 3.0.0, not compatible, you must update to use this. HOT 4
- egg-bin 5以上的版本设置端口无效
- 传闻Eggjs不再维护了,是真的吗? HOT 4
- new version available: 2.3.1 → 3.0.0, not compatible, you must update to use this. HOT 6
- 同一个方法在放在eggjs服务schedule 定时模块里面执行就可以获取的到inputElem,但是放到controller模块里面通过接口调用时获取不到呢,再express里面也可以成功调用,debug模式可能获取得到 HOT 3
- v3的文档多会更新,EggLogger 怎么用????? HOT 3
- 使用问题: 请问如何在egg应用下运行脚本,以及如何在脚本中使用app中的service,helper,db等能力 HOT 1
- egg-mysql能配置连接断开后自动重连吗
- eggjs 在容器通过前台启动,如何将stdout和stderr日志输出到日志文件 HOT 1
- curl返回值类型缩小 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egg.