参考
https://nuxtjs.org/docs/get-started/installation
Hello World
環境
node等の環境をdockerで準備する
nuxtjs.zip(70)
プロジェクト作成
yarn create nuxt-app myapp
typescriptのプロジェクトを作成したい場合はコマンド実行後に選択がでるので、typescriptを選択する。
サーバ起動と実行
cd myapp yarn dev
docker環境等でポートフォワードしている場合
nuxt.config.jsに以下を追記する。
server: { host: "0.0.0.0" }
API
nuxtにはAPIの機能はないので、express等を別途用意する必要がある。
https://dev.to/dabit3/creating-api-routes-in-a-nuxt-app-1kg1
[通知用URL]
Tweet
最終更新時間:2021年09月25日 11時39分39秒