restructure backend

This commit is contained in:
2026-01-16 18:07:23 +01:00
parent ebcc33b1f7
commit cd9d2e9900
21 changed files with 4323 additions and 69 deletions

View File

@@ -1,15 +1,43 @@
# desktop
# Bun Server
To install dependencies:
Install dependencies:
```bash
bun install
```
To run:
Run:
```bash
bun run index.ts
bun run src/index.ts
```
This project was created using `bun init` in bun v1.3.5. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
# Python Service
Run:
```bash
venv/Scripts/Activate.ps1
```
```bash
python python_service/app.py
```
# BACKEND DATA GENERATION
Update index / embeddings / ids for (new) cards:
1. update cards in `\images\cards`
2. activate venv:
```bash
venv/Scripts/Activate.ps1
```
3. run python script:
```bash
python encodeImages.py
```
4. great success