feat: web login system, auto-load history, config extraction

- Add Flask session-based authentication (username/password login)
- Auto-load chat history from backend on page load
- Extract SECRET_KEY and user credentials to web_config.json
- Create web_config.example.json as template
- Add web_config.json to .gitignore (sensitive info)
- Update docs: architecture, API reference, quick start guides
This commit is contained in:
root
2026-04-28 09:25:47 +08:00
parent 0ebd1d7ac6
commit 46008c14c5
10 changed files with 143 additions and 4 deletions

View File

@ -66,6 +66,26 @@ python trulymem_entry.py
---
### Web Visualization (Optional)
TrulyMEM provides a Web star-map visualization interface for browsing the knowledge graph in real-time:
```bash
# Start Web service
python web_api.py --port 4096
```
Then open `http://localhost:4096` in your browser.
**Login Setup:**
1. Copy `web_config.example.json` to `web_config.json`
2. Set login password (using SHA256) and secret key
3. Web service will automatically read the config
Default port is 4096, change with `--port` flag.
---
## Documentation Index
Detailed technical documentation in the [docs/en/](docs/en/) directory: