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
+8-35Lines changed: 8 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,42 +2,15 @@
2
2
3
3
The frontend is built with [Vite](https://vitejs.dev/), [React](https://reactjs.org/), [TypeScript](https://www.typescriptlang.org/), [TanStack Query](https://tanstack.com/query), [TanStack Router](https://tanstack.com/router) and [Tailwind CSS](https://tailwindcss.com/).
4
4
5
-
## Frontend development
5
+
## Requirements
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
+
-[Bun](https://bun.sh/) (recommended) or [Node.js](https://nodejs.org/)
8
8
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
-
11
-
* After installing either nvm or fnm, proceed to the `frontend` directory:
12
-
13
-
```bash
14
-
# If using fnm
15
-
fnm install
16
-
17
-
# If using nvm
18
-
nvm install
19
-
```
20
-
21
-
* Once the installation is complete, switch to the installed version:
22
-
23
-
```bash
24
-
# If using fnm
25
-
fnm use
26
-
27
-
# If using nvm
28
-
nvm use
29
-
```
30
-
31
-
* Within the `frontend` directory, install the necessary NPM packages:
32
-
33
-
```bash
34
-
npm install
35
-
```
36
-
37
-
* And start the live server with the following `npm` script:
9
+
## Quick Start
38
10
39
11
```bash
40
-
npm run dev
12
+
bun install
13
+
bun run dev
41
14
```
42
15
43
16
* Then open your browser at http://localhost:5173/.
@@ -89,7 +62,7 @@ But it would be only to clean them up, leaving them won't really have any effect
89
62
* To generate the frontend client, run:
90
63
91
64
```bash
92
-
npm run generate-client
65
+
bun run generate-client
93
66
```
94
67
95
68
* Commit the changes.
@@ -128,13 +101,13 @@ docker compose up -d --wait backend
128
101
Then, you can run the tests with the following command:
129
102
130
103
```bash
131
-
npx playwright test
104
+
bunx playwright test
132
105
```
133
106
134
107
You can also run your tests in UI mode to see the browser and interact with it running:
135
108
136
109
```bash
137
-
npx playwright test --ui
110
+
bunx playwright test --ui
138
111
```
139
112
140
113
To stop and remove the Docker Compose stack and clean the data created in tests, use the following command:
0 commit comments