This commit is contained in:
Valeria Fadeeva 2025-06-06 20:40:39 +05:00
parent e7b69c262b
commit ad7b809bbc
7 changed files with 56 additions and 15 deletions

2
.gitignore vendored
View File

@ -85,7 +85,7 @@ ipython_config.py
# pyenv # pyenv
# For a library or package, you might want to ignore these files since the code is # For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in: # intended to run in multiple environments; otherwise, check them in:
# .python-version .python-version
# pipenv # pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.

View File

@ -10,5 +10,4 @@ https://www.tutorialspoint.com/fastapi/fastapi_path_parameters.htm
https://eugeneyan.com/writing/how-to-set-up-html-app-with-fastapi-jinja-forms-templates/ https://eugeneyan.com/writing/how-to-set-up-html-app-with-fastapi-jinja-forms-templates/
https://github.com/josepaiva94/starter-fastapi-celery/tree/master/app https://github.com/josepaiva94/starter-fastapi-celery/tree/master/app

19
cleanup.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
mv .git/config config
rm -rf .git
git init -b main
mv config .git/config
git add --all .
git commit -m "cleanup"
git push origin main --force
echo "################################################################"
echo "################### cleanup Done ######################"
echo "################################################################"

5
pull.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
git pull
echo "Ready"

6
push.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
git add . && git commit -m "Update"
git push
echo "Ready"

View File

@ -28,6 +28,7 @@ dependencies = [
"idna (>=3.10,<4.0)", "idna (>=3.10,<4.0)",
"sniffio (>=1.3.1,<2.0.0)", "sniffio (>=1.3.1,<2.0.0)",
] ]
package-mode = false
[build-system] [build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"] requires = ["poetry-core>=2.0.0,<3.0.0"]

11
start.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
python -m venv .venv
pyenv local 3.13
poetry env activate
poetry install --no-root
#hypercorn LeraFoxQueen.main:app --reload --bind 0.0.0.0:8001
#poetry run hypercorn LeraFoxQueen/main:app --reload --bind 0.0.0.0:8001
#uvicorn LeraFoxQueen.main:app --reload --host 0.0.0.0 --port 8001
uvicorn LeraFoxQueen.main:app --reload --host 127.0.0.1 --port 8001