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: frontend/README.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The frontend is built with [Vite](https://vitejs.dev/), [React](https://reactjs.
4
4
5
5
## Frontend development
6
6
7
-
Before you begin, ensure that you have either the Node Version Manager (nvm) or Fast Node Manager (fnm) installed on your system.
7
+
Before you begin, ensure that you have either the Node Version Manager (nvm) or Fast Node Manager (fnm) installed on your system.
8
8
9
9
* To install fnm follow the [official fnm guide](https://github.com/Schniz/fnm#installation). If you prefer nvm, you can install it using the [official nvm guide](https://github.com/nvm-sh/nvm#installing-and-updating).
10
10
@@ -27,7 +27,7 @@ nvm install
27
27
28
28
```bash
29
29
# If using fnm
30
-
fnm use
30
+
fnm use
31
31
32
32
# If using nvm
33
33
nvm use
@@ -74,6 +74,19 @@ But it would be only to clean them up, leaving them won't really have any effect
74
74
75
75
## Generate Client
76
76
77
+
### Automatically
78
+
79
+
* Activate the backend virtual environment.
80
+
* From the top level project directory, run the script:
81
+
82
+
```bash
83
+
./scripts/generate-frontend-client.sh
84
+
```
85
+
86
+
* Commit the changes.
87
+
88
+
### Manually
89
+
77
90
* Start the Docker Compose stack.
78
91
79
92
* Download the OpenAPI JSON file from `http://localhost/api/v1/openapi.json` and copy it to a new file `openapi.json` at the root of the `frontend` directory.
0 commit comments