Skip to content

Commit

Permalink
add initial source
Browse files Browse the repository at this point in the history
  • Loading branch information
h3xxx committed Feb 13, 2024
1 parent 35fc257 commit 5014dba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ python -m pip install -r requirements.txt

## test / lint
```bash
pylint src
pylint app
```

```bash
Expand All @@ -28,7 +28,9 @@ pytest tests/test.py

## run server
```bash
uvicorn src.main:app --reload
uvicorn app.main:app --reload
```

http://127.0.0.1:8000/items/5?q=somequery

http://127.0.0.1:8000/docs
2 changes: 1 addition & 1 deletion src/__init__.py → app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Main module for the application.
"""
from src.main import app
from app.main import app

__all__ = [
"app"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fastapi.testclient import TestClient

# from .src import app
from src.main import app
from app.main import app

client = TestClient(app)

Expand Down

0 comments on commit 5014dba

Please sign in to comment.