これは「フロントエンドエンジニアのためのHotwire入門」のデモサイトです。 Next.jsをベースに作ってあります。
プロジェクトルートに.env.localファイルを作成します。内容は下記の通りです。
(秘密鍵が必要なサービスは使っていないので、このままで大丈夫です!)
URL=http://localhost:3000
DATABASE_DELAY=0開発用サーバ(Next.js)は下記のコマンドで起動します。
npm run devEJS(Hotwire)側を編集した時にTailwind CSSのスタイルを自動更新するには、下記のコマンドを実行します。
npm run hotwire-devブラウザで http://localhost:3000にアクセスして結果を見ます。
Open http://localhost:3000 with your browser to see the result.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.