Madiwka3 645810a8b9 | 1 년 전 | |
---|---|---|
app | 1 년 전 | |
.DS_Store | 1 년 전 | |
.gitignore | 1 년 전 | |
README.md | 1 년 전 | |
docker-compose.yml | 1 년 전 | |
requirements.txt | 1 년 전 |
goals to be met:
First, make sure that python is installed. Create a virtual environment (if you want to)
python/python3 -m venv venv
source /venv/bin/activate
(not necessary)
run the docker image provided to launch postgresql (telegram)
install dependencies:
pip install -r requirements.txt
open terminal in the app directory, and launch with:
uvicorn main:app --reload
OR
python3 -m uvicorn main:app --reload
app //main app
|-alembic //Alembic -- database migration manager. Helps keep databases in sync and changeable (handles all SQL logic and keeps everything up-to-date)
| |- //All files irrelevant
|-apis //Stores the actual API Endpoints.
| |-v1 //Main API endpoints
|-core //Core project components
|-db //Stores database information and data
| |-models //Stores database models (represents SQL Tables)
| |-repository //Stores scripts to create, update and interact with the database
|-schemas //Stores Pydantic data models (Kind of like db/models except for use in the API itself, not just the database. Uses for data validation and stuff)
git help command
)