TypeScript + Hono + Node.js で REST API を開発する学習プロジェクト。
- Runtime: Node.js v24
- Framework: Hono + @hono/node-server
- Language: TypeScript(strict モード)
- Linter: ESLint
- Formatter: Prettier
- 開発環境: VS Code Dev Containers(Ubuntu ベース)
- Docker
- VS Code
- VS Code 拡張機能「Dev Containers」(
ms-vscode-remote.remote-containers)
- リポジトリをクローン
git clone https://github.com/<your-name>/<your-repo>.git
cd <your-repo>- VS Code でフォルダを開く
code .-
コマンドパレットから
Dev Containers: Reopen in Containerを実行 -
コンテナ起動後、
my-app/に移動して依存関係をインストール
cd my-app
npm installmy-app/ ディレクトリで実行:
npm run dev # 開発サーバー起動(ポート 3000)
npm run build # TypeScript → dist/ へコンパイル
npm start # コンパイル済み成果物を実行
npm test # テスト実行
npm run lint # ESLint 実行
npm run format # Prettier でフォーマット.
├── .devcontainer/
│ └── devcontainer.json # Dev Containers 設定
├── my-app/
│ ├── src/
│ │ ├── index.ts # エントリーポイント
│ │ └── routes/ # ルーティング定義
│ ├── dist/ # コンパイル出力(Git 管理外)
│ ├── package.json
│ └── tsconfig.json
├── .gitignore
├── CLAUDE.md
└── README.md
コンテナ内で Claude Code が使える。初回のみ認証が必要。
claude2回目以降は認証不要(volume に認証情報を保持)。