Open minhhy2801 opened 3 months ago
1. Quy ước đặt tên:
Lower-Case
Title-Case
Title-Case
lower-case
2. Khai báo biến:
const
.👉 UNIQLO Project
|
└───dist
└───node_modules
└───public
| └───images
│ └───mainLayout
│ │ image1.png
│ │ image2.png
│
│ └───leaderLayout
│ │ image1.png
│ │ image2.png
└─── src
| └───apis
| └───auth.api.ts
| └───components
| └───Button
| | Button.tsx
| | index.ts
|
| └───Footer
| └───constant
| | httpStatus.ts
| | path.ts
|
| └───context
| | app.context.tsx
|
| └───layouts
| └───MainLayout
| | MainLayout.tsx
| | index.ts
|
| └───HeaderLayout
|
| └───pages
| └───Login
| | Login.tsx
| | index.ts
|
| └───ProductList
| └───types
| | auth.type.ts
| | user.type.ts
|
| └───utils
| │ auth.ts
| │ http.ts
|
│ .editorconfig
│ .eslintignore
│ .eslintrc.cjs
│ .prettierignore
│ .prettierrc
│ package.json
│ vercel.json
│ .gitignore
│ README.md
1.dist:
file build
.2. src:
constants, controller....
3.src/apis:
4.src/components:
5.src/components/component:
Login
hoặc Register
vì đăng nhập hay đăng kí thì đều phải có nút bấm6.src/constants:
7.src/context:
8.src/layouts:
9.src/layouts/layout:
Header
, Login
, Footer
. Nếu biến Component Login
thành Children
thì ra có thể tái sử dụng Header
, Footer
cho phần Register
10.src/pages:
9.src/types:
10.src/utils:
Please help add your code convention of FE and BE side Here is an example in FE for you to have a look: