Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Created December 1, 2024 09:56
Show Gist options
  • Save kuc-arc-f/a10d30576e1f08638f5e829213d3f2fa to your computer and use it in GitHub Desktop.
Save kuc-arc-f/a10d30576e1f08638f5e829213d3f2fa to your computer and use it in GitHub Desktop.
Prompt-remix54-posts

Prompt

コード生成して欲しいです。
CRUD アプリ、
Remix ,  tailwindcss 使用したいです。
Remix loader, action関数で、Cloudflare D1 database 連携したい。

・バックエンドのみ、生成して欲しい。
・CREATE TABLEを、生成して欲しい。

項目は、下記を追加したい。
title: INPUTタグ type=text
content: INPUTタグ type=text
content_type: INPUTタグ type=text
age: INPUTタグ type=text
public(公開、非公開) INPUTタグ type=radio
food_orange: INPUTタグ type=checkbox
food_apple: INPUTタグ type=checkbox
food_banana:  INPUTタグ type=checkbox
food_melon:  INPUTタグ type=checkbox
food_grape:  INPUTタグ type=checkbox
date_publish: INPUTタグ type=date
date_update: INPUTタグ type=date
post_number: INPUTタグ type=text
address_country: INPUTタグ type=text
address_pref: INPUTタグ type=text
address_city: INPUTタグ type=text
address_1: INPUTタグ type=text
address_2: INPUTタグ type=text
text_option1: INPUTタグ type=text
text_option2: INPUTタグ type=text

・TODOの追加機能を、ダイアログで編集したいです。
・TODOの編集機能を、ダイアログで編集したいです。
・TODOの削除機能を、追加したいです。
・TODOの検索機能を、追加したいです。


2nd

上記の、
フロントエンドのみ、生成して欲しい。

・バリデーション追加したい。react-hook-form未使用にしたい
npmは zod 使用したい。
検証内容は、下記です。
title: 未入力は、エラー
content: 未入力は、エラー
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment