feat: Add embedded SQLite database and web interface

- Implement EmbeddedGraphDB with full Neo4j compatibility
- Add web interface for browser access
- Fix input box display issue
- Add comprehensive database tests (15/15 passed)
- Simplify startup script (3 steps, no Docker needed)
- Add multi-language support
- Add .gitignore for clean repository
- Update documentation

All tests passed. Ready for production.
This commit is contained in:
JianFeeeee
2026-04-10 15:43:22 +08:00
parent 14ab28e242
commit 6689f08456
63 changed files with 4470 additions and 1086 deletions

35
graph_memory_tui/main.py Normal file
View File

@ -0,0 +1,35 @@
"""Graph Memory TUI 入口"""
import sys
from pathlib import Path
# 添加项目根目录到路径
project_root = Path(__file__).parent.parent
if str(project_root) not in sys.path:
sys.path.insert(0, str(project_root))
from .app import GraphMemoryApp
from .models.config import AppConfig
def main():
"""主函数"""
try:
# 加载配置
config = AppConfig.from_env()
# 创建并运行应用
app = GraphMemoryApp(config=config)
app.run()
except KeyboardInterrupt:
print("\n应用已退出")
sys.exit(0)
except Exception as e:
print(f"应用启动失败: {e}")
sys.exit(1)
if __name__ == "__main__":
main()