Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: litestar application #392

Merged
merged 9 commits into from
Dec 20, 2024

Conversation

NewSouthMjos
Copy link
Contributor

Implemented Litestar framework application.
Used all the current implementation of database and memcache.

Litestar can be run with gunicorn too, for example:
gunicorn -w 1 -k uvicorn.workers.UvicornWorker litestar_app:app --bind 0.0.0.0:8000

So, Dockerfile needs to be adjusted

Copy link
Owner

@antonputra antonputra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @NewSouthMjos! Can you please put it in its own folder under the 232 lesson, maybe called 'litestar-app'? It's just easier for me not to get mixed up. Also, if you don't mind, could you add the updated Dockerfile? There's less chance that I'll make a mistake.

@antonputra
Copy link
Owner

Or at least add Dockerfile.litestar in the root

@NewSouthMjos
Copy link
Contributor Author

NewSouthMjos commented Dec 20, 2024

Moved to lesson 232.
Note: litestar use mgspec library. Mgspec currently does not support python 3.13: jcrist/msgspec#764

Buy now, litestar-app using python 3.12

Copy link
Owner

@antonputra antonputra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'll test it in near future!

@antonputra antonputra merged commit 38f9107 into antonputra:main Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants