- React + Typescript
- Zustand - Small, fast, and scalable bearbones state management solution
- React Hook Form - Performant, flexible and extensible forms with
- React Query - Automatically caches data from your queries, reducing the need for redundant network requests and improving application performance.
- Tailwindcss - For styles
- Nextjs - framework for SSR
Important
This code structure was created using FSD (Feature-Sliced Design). Please read the FSD documentation before making any changes. Tailwind CSS and shadcn-ui are used for UI components. Define any CSS units such as px, rem, etc., in globals.css. React Query is used for API integration.
Note
Version Node +v20*
npm i
# and
npm run dev
# or
yarn install
# and
yarn dev
Run the project at localhost:3000
npm i
npm run build
npm run dev
# or
yarn install
yarn build
yarn dev
run the project at localhost:3000
Note
You need to create .env.development following the example of .env.example so that all parameters are
Root
βββ .hasky - Prehooks for commits
β
βββ public - All public files that will be included in the production build
β
βββ src - Development folder
β β
β βββ api- Describes all back requests indicating the Endpoint for firebase
β β
β βββ app - Here is the entire project structure by structure
β β
β βββ assets - All images of the project should be in this folder
β β
β βββ components - Components common to the project that are not included in the ui
β β
β βββ constants - Common constants for the project that are used throughout the project
| |
β βββ helpers - Contains utility functions and code for auxiliary tasks throughout the project
β β
β βββ layouts - For all layouts of the project
β β
β βββ lib - Contains shared utility functions and reusable components.
| |
β βββ locales - All project language words are formed in this folder!
| |
β βββ pages - All page of the project, that is, all pages, the main code is created in this folder
| |
β βββ providers - All project providers are described and formed in this folder
β β
β βββ shared - Components that are used throughout the project
β β
β βββ stores - State management is written in this folder
β β
β βββ styles - For globals css
β β
β βββ types- General types by src
β β
β βββ widgets- Contains reusable UI components and widget implementations
β
βββ .env.example - Example of environment variables for production.
βββ .eslintrc.json - Configuration for ESLint.
βββ .gitignore - Specifies which files and directories to ignore in Git.
βββ .npmrc - Configuration for npm, including registry settings and package behaviors.
βββ .prettierignore - Specifies which files and directories to ignore for Prettier formatting.
βββ tailwind.config.ts - Configuration for tailwind.
βββ .prettierrc - Configuration for Prettier formatting.
βββ next.config.ts - Configuration settings for Next.js.
βββ package.json - List of project dependencies and scripts.
βββ postcss.config.cjs - Configuration for PostCSS.
βββ tsconfig.json - Configuration for TypeScript
- The names of folders and files are always in notation (kebab-case), except for components that are both folders and files in notation (PascalCase)
- From the component, everything always imports from the index.ts file
- Styles are always in tailwindcss
- Interfaces in types.ts
- constants in constants.tsx
1) If the code is not ready, then mark your PR as βDraftβ with the βMark as draftβ button
2) Considers Architectural, Structural and other agreements on the design of PR to be critical and for this is not passed further than PR
3) The remaining comments are purely advisory in nature and are not a blocker for PR
4) Any controversial issue is discussed by the team and if there is no violation of points 1-2, then this dispute is not blocked!
- To type everything and anything that is possible is not to use ANY!
- any enemy! - always discuss exceptions with the team!
- avoid console.log if possible, in extreme cases console.error console.warn
- mutate values ββoutside the mobx store (use exclusively actions from the mobx store for such things.)