cista-storage/README.md

28 lines
826 B
Markdown
Raw Normal View History

2023-10-15 05:31:06 +01:00
# Web File Storage
Run directly from repository with Hatch (or use pip install as usual):
2023-10-15 05:31:06 +01:00
```sh
hatch run cista -l :3000 /path/to/files
2023-10-15 05:31:06 +01:00
```
Settings incl. these arguments are stored to config file on the first startup and later `hatch run cista` is sufficient. If the `cista` script is missing, consider `pip install -e .` (within `hatch shell`) or some other trickery (known issue with installs made prior to adding the startup script).
2023-10-19 17:54:03 +01:00
Create your user account:
2023-10-19 17:54:03 +01:00
```sh
hatch run cista --user admin --privileged
```
2023-10-21 20:30:47 +01:00
## Build frontend
Frontend needs to be built before using and after any frontend changes:
2023-10-21 20:30:47 +01:00
```sh
cd frontend
2023-10-21 20:30:47 +01:00
npm install
npm run build
```
This will place the front in `cista/wwwroot` from where the backend server delivers it, and that also gets included in the Python package built via `hatch build`.