Add combined development server launcher
This commit is contained in:
10
README.md
10
README.md
@@ -173,8 +173,16 @@ pirats/
|
||||
|
||||
### Frontend Development
|
||||
|
||||
Run the backend (`pirats --reload`) and the Vite dev server side by side; Vite proxies `/api` to port 8000:
|
||||
Start the backend and Vite dev server together from the repository root. Pressing Ctrl-C stops both:
|
||||
|
||||
```bash
|
||||
./dev.sh
|
||||
```
|
||||
|
||||
To run only the frontend, start the backend separately on port 8000, then run:
|
||||
|
||||
```bash
|
||||
cd frontend && npm install && npm run dev
|
||||
```
|
||||
|
||||
Vite proxies `/api` to the backend on port 8000.
|
||||
|
||||
Reference in New Issue
Block a user