Initial commit

This commit is contained in:
Jage9
2026-02-20 08:16:43 -05:00
commit b246c9a7fd
53 changed files with 9538 additions and 0 deletions

33
docs/local.md Normal file
View File

@@ -0,0 +1,33 @@
# Local Development
## Start Server
```bash
cd /home/jjm/code/chgrid/server
.venv/bin/python main.py --config config.toml --port 8765
```
## Start Client
```bash
cd /home/jjm/code/chgrid/client
npm run dev -- --host 0.0.0.0 --port 5173
```
Open: `http://localhost:5173`
## Quick Restarts
Server:
```bash
lsof -tiTCP:8765 -sTCP:LISTEN | xargs -r kill
cd /home/jjm/code/chgrid/server
nohup .venv/bin/python main.py --config config.toml --port 8765 > /tmp/chgrid-server.log 2>&1 &
```
Client:
```bash
lsof -tiTCP:5173 -sTCP:LISTEN | xargs -r kill
cd /home/jjm/code/chgrid/client
nohup npm run dev -- --host 0.0.0.0 --port 5173 > /tmp/chgrid-client.log 2>&1 &
```