Updated Development (markdown)

Viren070
2025-06-22 19:47:11 +01:00
parent 1bf6ea64e6
commit f2a84fc40c
+13 -10
@@ -12,26 +12,29 @@
npm i
```
Now, you can run various aspects of the project in development.
> [!NOTE]
> Most of these commands require that you build the project beforehand. Changes in other packages do not reflect immediately as it needs to be compiled into JavaScript first.
> Run `npm run build` to build the project.
To start the addon in development mode, run the following command:
```
npm run start:addon:dev
npm run start:dev
```
To run the cloudflare worker in development mode, run the following command
Only changes to the server package have hot reload, meaning no need to rebuild/restart. However, if you make a change in the core package, that needs to be rebuilt.
```
npm run start:cloudflare-worker:dev
npm -w packages/core run build
```
To run the frontend of the project, run the following command
The frontend requires itself to be connected to the server in order to function correctly, therefore for development purposes, set the `NEXT_PUBLIC_BACKEND_BASE_URL` environment variable to the currently running backend before running the dev command for the frontend.
**Bash**:
```
npm run start:frontend:dev
NEXT_PUBLIC_BACKEND_BASE_URL=http://localhost:3000/api/v1 npm run start:frontend:dev
```
**PowerShell** (Windows):
```
$Env:NEXT_PUBLIC_BACKEND_BASE_URL=http://localhost:3000/api/v1;npm run start:frontend:dev
```