diff --git a/.gitignore b/.gitignore index 24dfbbe..35f0eb3 100644 --- a/.gitignore +++ b/.gitignore @@ -85,7 +85,7 @@ ipython_config.py # pyenv # 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: -# .python-version +.python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. diff --git a/README.md b/README.md index ec0101a..71bfa71 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ -fastapi run LeraFoxQueen/main.py - -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 - -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://github.com/josepaiva94/starter-fastapi-celery/tree/master/app \ No newline at end of file +fastapi run LeraFoxQueen/main.py + +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 + +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://github.com/josepaiva94/starter-fastapi-celery/tree/master/app diff --git a/cleanup.sh b/cleanup.sh new file mode 100755 index 0000000..cb4c124 --- /dev/null +++ b/cleanup.sh @@ -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 "################################################################" diff --git a/pull.sh b/pull.sh new file mode 100755 index 0000000..83f2170 --- /dev/null +++ b/pull.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +git pull + +echo "Ready" diff --git a/push.sh b/push.sh new file mode 100755 index 0000000..434d0f3 --- /dev/null +++ b/push.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +git add . && git commit -m "Update" +git push + +echo "Ready" diff --git a/pyproject.toml b/pyproject.toml index 68f0d72..4da7831 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ dependencies = [ "idna (>=3.10,<4.0)", "sniffio (>=1.3.1,<2.0.0)", ] +package-mode = false [build-system] requires = ["poetry-core>=2.0.0,<3.0.0"] diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..30e358a --- /dev/null +++ b/start.sh @@ -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 \ No newline at end of file