restructure backend
This commit is contained in:
38
README.md
38
README.md
@@ -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
|
||||
Reference in New Issue
Block a user