Skip to content

Commit

Permalink
Merge pull request #35 from bescka/update-backup-setup
Browse files Browse the repository at this point in the history
Minor Updates
  • Loading branch information
BraunRudolf authored Aug 13, 2024
2 parents 7507428 + 7ebd0b8 commit 9fc176c
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 341 deletions.
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,28 @@
To run:

# Backend:
## .env
FASTAPI_SECRET_KEY=
FASTAPI_HASH_ALGORITHM="HS256"
ACCESS_TOKEN_EXPIRE_MINUTES=30
USER_DB_URL="sqlite:///:memory:"
FILE_DB_URL="sqlite:///:memory:"

from backend-app:
``
```
python -m venv env
source env/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload
cd backend-app
poetry install
poetry run uvicorn app.main:app --reload
```
docs available with SwaggerUI at /docs
requirements in requirements.txt
to run pytest
```
poetry run pytest
```
docs available with SwaggerUI at `http://localhost:8000/docs`

# Frontend
from frontend-app:

```
cd frontend-app
npm install
npm run dev
```
Expand Down
10 changes: 0 additions & 10 deletions backend-app/app/example.env

This file was deleted.

Loading

0 comments on commit 9fc176c

Please sign in to comment.