準備 2 / 4 確認:2026年9月

作り始めのコマンド集

選んだケースの習熟度は、このページの最後に出る。

この章の見出し(13)

ケースごとの構成の雛形を作るコマンド(ケース別の構成)。対話式のものは質問に答えて進める。先に共通の準備を済ませておく。

共通の準備

# 言語・ツールのバージョン固定(使う言語だけ)mise use node@lts pnpm@latestmise use go@latestmise use ruby@latestmise use python@latest uv@latest# Gitフックと依存更新pnpm add -D lefthook && pnpm exec lefthook install# renovate.json を置き、GitHubでRenovateアプリを有効化する

コーポレートサイト

pnpm create astro@latestpnpm astro add tailwind# Cloudflare Pages にリポジトリを接続してデプロイ

EC・独自要件

npx create-medusa-app@latestpnpm create next-app@latest storefront

業務システム・Rails構成

gem install railsrails new app -d postgresql -c tailwindcd appbin/rails generate authenticationbundle add pundit pagy# Kamalの設定は config/deploy.yml に生成済み

業務システム・TypeScript構成

pnpm dlx create-turbo@latest appcd app/appspnpm create vite@latest web --template react-tspnpm create hono@latest api# api側pnpm add drizzle-orm pg better-auth zodpnpm add -D drizzle-kit @types/pg# web側pnpm dlx shadcn@latest initpnpm add @tanstack/react-query @tanstack/react-router react-hook-form# 共通pnpm add -D -E @biomejs/biome && pnpm exec biome initpnpm add -D vitest && pnpm create playwright

自社SaaS・Goバックエンド

mkdir api && cd apigo mod init example.com/app/apigo install github.com/sqlc-dev/sqlc/cmd/sqlc@latestgo install github.com/pressly/goose/v3/cmd/goose@latestgo install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latestgo get github.com/jackc/pgx/v5 github.com/riverqueue/riversqlc initgoose -dir db/migrations create init sql

toCサービス

npx create-expo-app@latest mobilepnpm create next-app@latest webnpx supabase init

AI/LLMプロダクト

# Python(ML系の処理がある場合)uv init ai-api && cd ai-apiuv add "fastapi[standard]" sqlalchemy alembic pgvector httpxuv add --dev ruff pytest pyright

リアルタイム通信

# TypeScript・マネージド(Cloudflare Durable Objects)pnpm create next-app@latest webpnpm create cloudflare@latest realtime --type=hello-world-durable-object# 自前運用(AWS・オンプレ)なら、Node.jsのWebSocketサーバーにValkeyのPub/Subを足す# Elixir(Phoenix Channels)mix archive.install hex phx_newmix phx.new appcd app && mix ecto.create

CLI

go mod init example.com/toolgo get github.com/spf13/cobragoreleaser init

その他の言語

# Rust(Web API)cargo new app && cd appcargo add axum serde --features serde/derivecargo add tokio --features fullcargo add sqlx --features runtime-tokio,postgres# Rust(デスクトップ)pnpm create tauri-app@latest# Kotlin(Spring Boot)curl https://start.spring.io/starter.zip \  -d language=kotlin -d type=gradle-project-kotlin \  -d dependencies=web,jooq,flyway,postgresql,actuator \  -o app.zip# C#(ASP.NET Core)dotnet new webapi -n App

インフラ

mise use terraform@latest   # または opentofuterraform init# Cloudflare Workerspnpm create cloudflare@latest

モバイルアプリ単体

npx create-expo-app@latest appcd appnpx supabase initnpx eas-cli@latest build:configure
準備
構成図