Files
chat_grid/docs/local.md

40 lines
753 B
Markdown
Raw Normal View History

2026-02-20 08:16:43 -05:00
# Local Development
## Start Server
```bash
cd /home/jjm/code/chgrid/server
.venv/bin/python main.py
2026-02-20 08:16:43 -05:00
```
## Start Client
```bash
cd /home/jjm/code/chgrid/client
npm run dev
2026-02-20 08:16:43 -05:00
```
Open: `http://localhost:5173`
Defaults:
- Server reads `config.toml` automatically when present.
- Server default bind/port is `127.0.0.1:8765`.
- Client dev default is `localhost:5173`.
- Auth requires `CHGRID_AUTH_SECRET` in environment.
2026-02-20 08:16:43 -05:00
## Quick Restarts
Server:
```bash
lsof -tiTCP:8765 -sTCP:LISTEN | xargs -r kill
cd /home/jjm/code/chgrid/server
nohup .venv/bin/python main.py > /tmp/chgrid-server.log 2>&1 &
2026-02-20 08:16:43 -05:00
```
Client:
```bash
lsof -tiTCP:5173 -sTCP:LISTEN | xargs -r kill
cd /home/jjm/code/chgrid/client
nohup npm run dev > /tmp/chgrid-client.log 2>&1 &
2026-02-20 08:16:43 -05:00
```