フォルダ構成を決める
Closed this issue · 2 comments
dak2 commented
dak2 commented
dak2 commented
pages
ディレクトリ配下がrouting
となるpages
ディレクトリ配下に機能ごとのディレクトリを用意- ex. dashboard, quizzes
- componentsは汎用コンポーネントをまとめる
- libは共通化した汎用コードを置く
- providersはステート管理用のプロバイダーを置く
tree -I node_modules
.
├── Dockerfile
├── README.md
├── components
│ └── elements
│ └── button
│ ├── LoginButton.tsx
│ └── LogoutButton.tsx
├── docker-compose.yml
├── lib
│ └── auth.ts
├── next-env.d.ts
├── package-lock.json
├── package.json
├── pages
│ ├── _app.tsx
│ ├── api
│ │ └── hello.ts
│ ├── dashboard
│ │ └── index.tsx
│ ├── index.tsx
│ └── quizzes
│ └── index.tsx
├── providers
│ ├── GoogleLoginProvider.tsx
│ └── UserProvider.tsx
├── public
│ ├── favicon.ico
│ ├── github.svg
│ └── images
├── styles
│ ├── Home.module.css
│ └── globals.css
└── tsconfig.json
12 directories, 21 files