Clean up docs related to local development instructions
This commit is contained in:
parent
3df5e4b76d
commit
f176ba1eb0
2 changed files with 7 additions and 39 deletions
19
README.md
19
README.md
|
|
@ -297,7 +297,7 @@ Use two terminals so the backend and Vite stay independent:
|
||||||
```bash
|
```bash
|
||||||
cd webui
|
cd webui
|
||||||
npm ci
|
npm ci
|
||||||
npm run dev -- --host 127.0.0.1 --port 5173
|
npm run dev
|
||||||
```
|
```
|
||||||
Vite hot reloads the React side when you change webui files.
|
Vite hot reloads the React side when you change webui files.
|
||||||
|
|
||||||
|
|
@ -437,22 +437,9 @@ SoulSync uses a `dev` → `main` flow:
|
||||||
|
|
||||||
### Running locally
|
### Running locally
|
||||||
|
|
||||||
```bash
|
Use the [Local Development](#local-development) section above for the full repo-wide setup and the portable dev launcher.
|
||||||
python -m pip install -r requirements-dev.txt
|
|
||||||
python -m ruff check . # must be 0 errors
|
|
||||||
python -m pytest # all tests must pass
|
|
||||||
```
|
|
||||||
|
|
||||||
For web UI development, keep the backend and Vite dev server in separate terminals:
|
For web UI work, see [webui/README.md](webui/README.md). It keeps the React-side notes close to the app while this file stays the single place for repo-wide dev instructions.
|
||||||
|
|
||||||
```bash
|
|
||||||
gunicorn -c gunicorn.dev.conf.py wsgi:application
|
|
||||||
cd webui
|
|
||||||
npm install
|
|
||||||
npm run dev -- --host 127.0.0.1 --port 5173
|
|
||||||
```
|
|
||||||
|
|
||||||
If you want a convenience wrapper, `./dev.sh` starts both halves together.
|
|
||||||
|
|
||||||
Ruff config lives in `pyproject.toml`. The ruleset is intentionally lenient — it catches real bugs (undefined names, import shadowing, closure-in-loop) without style nits.
|
Ruff config lives in `pyproject.toml`. The ruleset is intentionally lenient — it catches real bugs (undefined names, import shadowing, closure-in-loop) without style nits.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,27 +67,8 @@ That order avoids load-time references to missing globals and keeps the React si
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
The recommended dev flow keeps the backend and frontend separate:
|
The repo root now owns the full local-dev instructions. Start there for the
|
||||||
|
portable launcher and backend/frontend setup:
|
||||||
|
|
||||||
1. Start the Python backend:
|
1. [README.md](../README.md) for the end-to-end dev flow
|
||||||
```bash
|
2. `npm run check` and `npm run fix` for React-side linting and formatting
|
||||||
gunicorn -c gunicorn.dev.conf.py wsgi:application
|
|
||||||
```
|
|
||||||
The dev Gunicorn config watches backend files and restarts the Python server when they change.
|
|
||||||
2. Start the Vite dev server in another terminal:
|
|
||||||
```bash
|
|
||||||
cd webui
|
|
||||||
npm ci
|
|
||||||
npm run dev -- --host 127.0.0.1 --port 5173
|
|
||||||
```
|
|
||||||
Vite hot reloads the React side when you change webui files.
|
|
||||||
|
|
||||||
For linting and formatting, use:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm run check
|
|
||||||
npm run fix
|
|
||||||
```
|
|
||||||
|
|
||||||
If you want a convenience launcher, the repo root includes `python dev.py`
|
|
||||||
for any OS and `./dev.sh` as a Unix shell wrapper.
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue