neuron-zk-generator/README.md

47 lines
1,000 B
Markdown
Raw Normal View History

2024-10-19 13:03:04 +01:00
# `neuron-zk-generator`
2024-11-14 13:17:26 +00:00
This Python application reads data from [my](https://github.com/thomasabishop/eolas) [zettelkasten](https://en.wikipedia.org/wiki/Zettelkasten) and
formats it so that it can be compiled as a [Neuron](https://neuron.zettel.page/) project and from there published as a static-site on the Web.
2024-10-19 13:03:04 +01:00
2024-11-14 13:17:26 +00:00
## Local development
2024-10-13 19:00:48 +01:00
2024-10-19 13:03:04 +01:00
```sh
2024-10-13 19:00:48 +01:00
source venv/bin/activate
2024-10-19 13:03:04 +01:00
pip install -r requirements.txt
2024-10-13 19:00:48 +01:00
neuron-zk-generator
```
2024-10-19 13:03:04 +01:00
2024-11-14 13:17:26 +00:00
## Run as local application
```
pipx install [local_path_to_application]
neuron-zk-generator
```
### Update after changes
```
pipx uninstall neuron-zk-generator
pipx install [local_path_to_application]
```
## Build single executable
2024-10-19 13:03:04 +01:00
Use `pyinstaller` to create single executable file. `pyinstaller` is installed
along with other packages in `requirements.txt`.
From root:
```sh
pyinstaller -F src/app.py
# -F compiles to single file
```
Outputs to `neuron-zk-generator/dist/app`.
Sourcing the executable:
```sh
/home/thomas/repos/neuron-zk-generator/dist/app
```