Skip to content

Commit 99e3444

Browse files
committed
update readme
1 parent 6ee0179 commit 99e3444

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Synology Package Repository
1414
### Installation
1515
1. Run postgres, e.g. using docker with `docker compose up db`
1616
2. Install dependencies with `poetry install`
17-
3. Run the next commands in the virtual environment `poetry shell`
17+
3. Next activate the env so we can run the next commands in the virtual environment: `eval "$(poetry env activate)"` or use the poetry shell: `poetry self add poetry-plugin-shell` and `poetry shell`
1818
4. Create the tables with `flask db upgrade`
1919
5. Populate the database with some fake packages with `flask spkrepo populate_db`
2020
6. Add a user with `flask spkrepo create_user -u admin -e admin@synocommunity.com -p adminadmin`
@@ -83,7 +83,13 @@ SPKREPO_CONFIG="$PWD/config.py" gunicorn -w 4 'wsgi:app'
8383

8484
## Add migration
8585

86-
```
86+
```bash
8787
cd migrations/
8888
alembic revision -m "update build path length"
8989
```
90+
91+
## Test NAS API
92+
93+
```sh
94+
curl "http://localhost:5000/nas?package_update_channel=beta&build=24922&language=enu&major=6&micro=2&arch=x86_64&minor=2"
95+
```

0 commit comments

Comments
 (0)