Proposal: Controller Generation in Sequelize
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- express, javascript, node.js
調査の方向性
Start by locating the existing sequelize generate:model command and its templates. Compare the proposed -c option with the current generator behavior, then determine the framework templates, configuration options, and CRUD scope required. Done means an agreed design and implementation plan for controller generation, since this issue is currently seeking preliminary discussion.
索引モデルが issue の本文から書いたものです。
説明
Proposal: Controller Generation in Sequelize
Inspired by the Rails framework, I'm considering introducing a feature in Sequelize that would allow users to generate controllers alongside models, streamlining the development process for many.
Command and Output:
The envisioned command would be:
sequelize generate:model User -c koa
If the -c flag is followed by koa, Sequelize would generate a Koa-compatible controller. Similarly, specifying other frameworks like express or fastify would generate controllers tailored for them.
Implementation Plan:
-
Templating:
- Create templates for popular Node.js web frameworks (e.g., Express, Koa, Fastify).
- Allow users to specify their framework of choice during generation.
-
Configuration Options:
- Offer customization options for the generated controllers.
-
Basic CRUD Logic:
- Include essential CRUD operations in the generated controllers.
Seeking Preliminary Discussion:
Before diving into the development, I wanted to discuss this with you to gauge its feasibility and alignment with Sequelize's vision. I'm fully prepared to develop this PR, but I believe a preliminary discussion would be invaluable.
Your insights and feedback would be greatly appreciated. If this proposal aligns with Sequelize's direction, I'm eager to start working on it and contribute to the project.
Thank you for your time and consideration.
### Tasks
- 主要言語
- JavaScript
- スター
- 2.6k
- フォーク
- 524
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sequelize/cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Automattic/studio#4908 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
sugarlabs/musicblocks#8847 ·