Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.12 KB

File metadata and controls

54 lines (42 loc) · 1.12 KB

クライアント (フロントエンド) 構成

このディレクトリは React.js を使ったフロントエンドの実装。

目次

1. 構成

project/
│
├── client/
│   ├── package.json
│   ├── index.html
│   ├── src/
│   │  ├── index.tsx
│   │  ├── App.tsx
│   │  ├── components/
│   │  ├── pages/
│   │  ├── routes/
│   │  ├── lib/
│   │  └── styles/
│   ├── test_data/
│   └── README.md

2.セットアップ

npm create vite@latest client -- --template react-ts
cd client
npm install

3.開発環境

  npm run dev

4.ビルド

  cd shared && npm run build && cd ../client && npm install && npm run build

生成されたファイルは dist/ディレクトリに出力される