You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/webapp/README.md
+40-9Lines changed: 40 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,42 @@
1
-
# React + TypeScript + Vite
1
+
# Harmonia Client-Side Docs
2
2
3
-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+
## Local Development
4
4
5
-
Currently, two official plugins are available:
5
+
1. Install dependencies:
6
6
7
-
-[@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
-
-[@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7
+
```bash
8
+
npm install
9
+
```
10
+
11
+
2. Run the development server:
12
+
13
+
```bash
14
+
npm run dev
15
+
```
16
+
17
+
## Project Structure
18
+
19
+
The important folders and structures of the projects are defined as follows:
│ ├─ components/ # Reusable React components (self-implemented and generated with shadcn)
26
+
│ │ └─ ui/ # UI components, generated with shadcn
27
+
│ ├─ data/ # Data loaders (API-related utilities) and mock data
28
+
│ ├─ hooks/ # Custom React hooks used across the project
29
+
│ ├─ lib/ # Utilities
30
+
│ ├─ pages/ # Application pages used by the router
31
+
│ ├─ types/ # TypeScript types, interfaces, and shared definitions
32
+
│ ├─ config.ts # Global configuration (e.g., flags, environment settings)
33
+
│ ├─ main.ts # App entry point that initializes React
34
+
│ ├─ index.css # Global stylesheet for the application
35
+
│ └─ App.tsx # Root component that sets up app structure/layout
36
+
├─ package.json # Project dependencies and scripts
37
+
└─ README.md # Project documentation
38
+
39
+
```
9
40
10
41
## React Compiler
11
42
@@ -40,15 +71,15 @@ export default defineConfig([
40
71
// other options...
41
72
},
42
73
},
43
-
])
74
+
]);
44
75
```
45
76
46
77
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
0 commit comments