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)
- extend/application.js空导出,导致接口返回404 HOT 1
- 文档链接显示错误
- 依照官网初始化项目 HOT 1
- eggjs处理服务端请求有超时时间吗 HOT 3
- 在 service 中 extends egg 暴露的 Service 项目无法启动 HOT 1
- egg-router-plus 根 router 应该支持正则 HOT 1
- 能否将依赖的urllib升级为3.25的系列,而不是现在的2.41.0 HOT 2
- 怎么在没有app上下文的文件中 获取config中的配置? HOT 4
- 使用 oxlint 代替 eslint HOT 5
- egg 运行一段时间后,就会退出 HOT 1
- Track Progress of PR #5332 Towards Merging into Master
- Follow-up on PR #5334: Allow to create httpClient from app
- Track merging PR #5336 into master branch
- 服务器 egg-scrips start 无法启动,一直提示文件找不到。但是本地能正常运行 HOT 5
- Track merging of PR #5339 into master
- Track bugfix for httpclient.safeCurl typing
- eggjs返回的响应头为什么是使用小写? HOT 4
- 初始化项目跑不起来 HOT 1
- 为什么在服务启动命令中添加参数在服务生命周期中获取不到? HOT 2
- enableH2 开启的时候使用 undici v6
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.