Proposal: Controller Generation in Sequelize

オープン
#1,360 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
express, javascript, node.js
領域
backend, cli, web-dev

調査の方向性

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:

  1. Templating:

    • Create templates for popular Node.js web frameworks (e.g., Express, Koa, Fastify).
    • Allow users to specify their framework of choice during generation.
  2. Configuration Options:

    • Offer customization options for the generated controllers.
  3. 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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sequelize/cli のほかの issue

sequelize/cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。