eolas-db/README.md

57 lines
1.4 KiB
Markdown
Raw Normal View History

2024-08-26 15:50:13 +01:00
# eolas-db
2024-11-14 09:21:01 +00:00
This CLI application parses entries in my
2025-10-19 12:02:25 +01:00
[zettelkasten](https://github.com/thomasabishop/eolas), extracts the content
2025-10-19 12:09:29 +01:00
and metadata for each entry and inserts it into an SQLite database.
2025-10-19 12:02:25 +01:00
It takes two parameters:
- `--source`
- A file reference to the location of the markdown files comprising the Zettelkasten
- `--target`
- A file reference designating where the SQLite file should be saved.
2024-10-31 15:40:05 +00:00
2024-11-03 14:31:15 +00:00
## Local development
2024-10-31 15:40:05 +00:00
2025-01-21 17:43:59 +00:00
```sh
2024-10-31 15:40:05 +00:00
source venv/bin/activate
2025-10-19 12:02:25 +01:00
python3 src/app.py --source="/my-zettelkasten-entries" --target="/tmp/zettelkasten-output-dir"
2024-11-14 09:21:01 +00:00
```
## Production
2025-01-21 17:43:59 +00:00
### Generate single executable
2024-11-14 09:21:01 +00:00
2025-01-21 17:43:59 +00:00
```sh
source venv/bin/activate
2025-10-19 12:02:25 +01:00
pyinstaller --onefile ${HOME}/eolas-db/src/app.py
2024-11-14 09:21:01 +00:00
```
2025-10-19 12:02:25 +01:00
Will build to the `/dist` directory of this repo when run locally.
2024-11-14 09:21:01 +00:00
2025-10-19 12:02:25 +01:00
### Run executable
2025-01-21 17:43:59 +00:00
```sh
2025-10-19 12:02:25 +01:00
${HOME}/eolas-db/dist/app --source="/my-zettelkasten-entries" --target="/tmp/zettelkasten-output-dir"
2024-11-14 09:21:01 +00:00
```
2025-10-19 12:02:25 +01:00
## ERM
2024-11-03 14:31:15 +00:00
2025-10-19 12:02:25 +01:00
![ERM diagram for eolas-db](./eolas-db-ERM.png)
2025-01-21 17:43:59 +00:00
2025-10-19 12:02:25 +01:00
## Related projects
2025-01-21 17:43:59 +00:00
2025-10-19 12:02:25 +01:00
### [eolas](https://forgejo.systemsobscure.net/thomasabishop/eolas)
2025-01-21 17:43:59 +00:00
2025-10-19 12:02:25 +01:00
The repository for the Zettelkasten that this application reads from.
2025-01-21 17:43:59 +00:00
2025-10-19 12:02:25 +01:00
### [eolas-api](https://forgejo.systemsobscure.net/thomasabishop/eolas-api)
2024-11-03 14:31:15 +00:00
2025-10-19 12:02:25 +01:00
A NodeJS Express API which sources its data from database created by
this application.
2024-11-11 14:34:41 +00:00
2025-10-19 12:02:25 +01:00
### [eolas-app](https://forgejo.systemsobscure.net/thomasabishop/eolas-app)
2024-11-11 14:34:41 +00:00
2025-10-19 12:02:25 +01:00
A web frontend for the application, deployed at
[eolas-app.systemsobscure.net](https://eolas-app.systemsobscure.net).