- Rikkeisoft (DN1) training Rikkei Academy (202311)
- NodeJS (v18)
- TypeScript
- ReactJS (v18)
- react-bootstrap (2.8)
- @reduxjs/toolkit (1.9)
└───src
│ App.tsx
│ index.tsx
├───apis/ # Chứa định nghĩa liên quan tới API
│ │ base.api.ts
│ └───{xxx}/
│ └───{yyy}/
│ │ index.ts # Định nghĩa API endpoints
│ ├───requests/ # Định nghĩa API request types
│ └───responses/ # Định nghĩa API response types
├───assets/ # Chứa các static files
├───components/ # Chứa các components
│ ├───errors/ # Common components liên quan tới lỗi
│ ├───form/ # Common components liên quan tới form (input/button)
│ ├───partials/ # Common components liên quan tới layouts
│ ├───table/ # Common components liên quan tới table
│ └───views/ # Components dành cho các page, cụm chức năng
├───layouts/ # Chứa layouts sử dụng chung
├───pages/ # Chứa các page components
│ │ DashboardPage.tsx
│ │ LoginPage.tsx
│ ├───{xxx}/
│ └───{yyy}/
├───routes/ # Định nghĩa các routes
├───store/
│ │ index.ts # Khởi tạo redux store
│ ├───actions/ # Chứa các redux actions
│ │ xxx.action.ts
│ │ yyy.action.ts
│ └───reducers/ # Chứa các redux reducers
│ xxx.reduder.ts
│ yyy.reduder.ts
├───types/ # Chứa các định nghĩa types
└───utilities/ # Chứa các xử lý common
xxx.util.ts
yyy.util.ts
Chạy Terminal ở thư mục này
$ yarn install
Chạy Terminal ở thư mục này
# development
$ yarn dev
Chạy Terminal ở thư mục này
# Format code (bắt buộc chạy trước khi commit code)
$ yarn format
# Lint code (bắt buộc chạy trước khi commit code)
$ yarn lint
Chạy Terminal ở thư mục này
# Build (bắt buộc chạy trước khi commit code)
$ yarn build