-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial attempt at some structuring of the repo
1 parent
eebd8dc
commit faeb245
Showing
10 changed files
with
61 additions
and
103 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Overview | ||
-------- | ||
|
||
* api (FastAPI) | ||
* data [small data files (if needed), probably where the SQLite DB will be stored...] | ||
* database (scripts alembic migrations) | ||
* inventory [deals with inventory-related tasks] | ||
* order [deals with the order tasks] | ||
* streamlit_app (streamlit frontend) | ||
* tests [openastronomy location for tests] | ||
|
||
|
||
Repository Layout | ||
================= | ||
|
||
Below is the proposed directory structure for the `weird_salads` project: | ||
|
||
.. code-block:: text | ||
weird_salads/ | ||
├── weird_salads/ # Main application package | ||
│ ├── README.rst | ||
│ ├── data/ # Small data-related files (/SQLite DB) | ||
│ ├── database/ # DB related utils, e.g. alembic | ||
│ ├── api/ # FastAPI-related code | ||
│ │ ├── __init__.py | ||
│ │ ├── app.py # FastAPI app and routers | ||
│ │ ├── endpoints/ | ||
│ │ ├── schemas/ | ||
│ │ │ ├── orders_schema.py # Orders Pydantic schemas | ||
│ │ │ └── inventory_schema.py # Inventory Pydantic schemas | ||
│ │ └── ... | ||
│ ├── inventory/ # Inventory module | ||
│ │ ├── inventory_service/ # Business logic | ||
│ │ │ ├── exceptions.py # inventory-specific exceptions | ||
│ │ │ ├── inventory_service.py | ||
│ │ │ └── ... | ||
│ │ ├── repository/ # Data layer access | ||
│ │ │ ├── __init__.py | ||
│ │ │ ├── inventory_repository.py | ||
│ │ │ ├── models.py | ||
│ │ │ └── ... | ||
│ │ └── ... | ||
│ ├── orders/ # Orders module (similar to Inventory) | ||
│ │ ├── orders_service/ | ||
│ │ │ ├── exceptions.py | ||
│ │ │ ├── orders_service.py | ||
│ │ │ └── orders.py | ||
│ │ ├── repository/ | ||
│ │ │ ├── __init__.py | ||
│ │ │ ├── orders_repository.py | ||
│ │ │ ├── models.py | ||
│ │ │ └── ... | ||
│ │ └── ... | ||
│ ├── streamlit_app/ # Streamlit frontend | ||
│ ├── tests/ # Unit and integration tests | ||
│ ├── utils/ # Shared utility functions | ||
│ │ ├── unit_of_work.py # Unit of work for transaction management | ||
│ │ └── ... | ||
│ └── version.py # Version information | ||
└── ... |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.