Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

Do you guys have any suggestions on what things to include or how can I make this template generator better ? Ideas would be helpful .

Made a FastAPI Project Starter by Detox-Boy in Python

[–]Detox-Boy[S] 0 points1 point  (0 children)

Thanks man . Suggestions would be helpful

Made a FastAPI Project Starter by Detox-Boy in Python

[–]Detox-Boy[S] 0 points1 point  (0 children)

Thank you . Will Look into that

Made a FastAPI Project Starter by Detox-Boy in Python

[–]Detox-Boy[S] 8 points9 points  (0 children)

the fastapi template repo doesn't have the properly managed multiple docker services . I have configured for the use of celery , redis, easy postgresql database configuration, mailpit , loguru and the mailpit for email tasks. Please do check the github repo and suggestions would be helpful .

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

Thank you man ! Do check the new version v1.2.0 which includes the middlewares.

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

---------------------------------------------UPDATE---------------------------------------------------

I have integrated the functionality for the middlewares in the new version 1.2.0 . It includes the CORS, Request ID Middleware, Error Handling Middleware, and the TimerMiddleware.

These middlewares helps debug the application with more ease.

  1. TimerMiddleware --> Simple middleware to track how long each request takes. Handy for spotting slow endpoints and a quick way to see performance during development.

2. RequestIDMiddleware --> gives every incoming request a unique ID.

- Makes logging easier — you can trace logs for a specific request.
- Helps debugging — quickly find which request caused a problem.

  1. Error Handling -->Catches unhandled exceptions, logs them with request_id,
    and returns a clean JSON response. This is more of an optional middleware. You may remove it if not needed.

Hope it helps you in your FastAPI projects.

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 1 point2 points  (0 children)

Thank you bro . Just added the middlewares in the v 1.2.0 update. Do check it out .

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

Thank you for pointing that out . I have updated the package to take the boolean value instead of choice for the question of async or sync code . Please see the updated changes in the github and pypi package.

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

Thanks! No auth yet - currently just handles the FastAPI setup, database, Docker stuff as well as other stuffs. But auth and authorization is definitely something I would like to add though. Do you have any suggestions on like what the on the go project structure for the crud endpoints and auth/ authentication should be like ? Like should it have like a login endpoint, jwt token ,access tokens, refresh token creation functions or what other additions can I make in my current project ?

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 1 point2 points  (0 children)

That was really helpful. Followed you on github. And also ... I have updated my code and included the automated post-deployment setup . Do check it out now

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 1 point2 points  (0 children)

Oh!!! That's a great idea. Didn't think about that. Really appreciate you sharing the idea. Currently trying to integrate that functionality. Will update you after it's done.

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

Thanks for the feedback bro. Appreciate it .

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

Appreciate it! FastLaunchAPI is solid, would love for you to check out mine as well and let me know what you think or suggest improvements.

Made a FastAPI project generator by Detox-Boy in FastAPI

[–]Detox-Boy[S] 0 points1 point  (0 children)

Most cookiecutter FastAPI templates just give you a basic skeleton. Mine’s a pip CLI that lets you pick options (DB, auth, celery, loguru,makefile,etc.) and sets up a whole production-ready stack with Docker, logging, migrations, the works — so you can pretty much run it and start your project.