1.2 KiB
1.2 KiB
Codebase Structure
## File Structure
project-name/
├── public/
│ ├── index.html
│ ├── firebase-scripts (To load scripts locally)
│ ├── lotties (Lottie files)
│ ├── statics-images
│ ├── .well-known/
│ │ ├── assetlinks.json (TWA config file)
│ └── ...
├── src/
│ ├── apps/
│ ├── components/
│ ├── assets/
│ ├── hooks/
│ ├── pages/
│ ├── routes/
│ ├── utils/
│ ├── App.css
│ ├── App.tsx
│ ├── main.tsx
│ └── ...
├── package.json
└── ...
Source Structure
components/: Reusable presentational componentslayouts/: Components that are layout or container or wrapper of other componentshooks/: React custom hookscontexts/: React contexts providerspages/: Project pages same as created routesservices/: React query and api call hooks and functions / back-end relationsroutes/: Main structure of project routesdata/: Static data itmesassets/: Project assests like images, videos, fonts, etc.utils/: Utility functions and helpers