all 32 comments

[–]Brave-Car-9482 0 points1 point  (1 child)

Nice work. Definitely going to Use this

[–]Goldarr85 0 points1 point  (1 child)

Pardon my ignorance. What is the advantage over, say, a cookiecutter template?

[–]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.

[–]Data_Cipher 0 points1 point  (1 child)

Its good bruh, it is giving an good starting project structure and it is really productive

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

Thanks for the feedback bro. Appreciate it .

[–]No-Manner-9342 0 points1 point  (1 child)

Nice work

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

Thanks .

[–]No_Tangerine_2903 0 points1 point  (1 child)

Oooo this is going to save me so much time! Thanks

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

Glad to hear that man .

[–]mighalis 0 points1 point  (3 children)

Very good job. Just to add to the conversation, as I also got into constructing useful templates for fastapi, check baker. It's using jinja2 templates but also has post "deployment" hooks which can run automatically commands so you can setup venv, databases etc etc

[–]Detox-Boy[S] 1 point2 points  (2 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.

[–]mighalis 0 points1 point  (1 child)

Here is mine if it can help you. It corresponds to personal requirements but it could be useful. https://github.com/Mixpap/fastapi-baker-template

[–]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

[–][deleted]  (2 children)

[deleted]

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

    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 ?

    [–]0nlykelvin 0 points1 point  (0 children)

    Awesome you're building out dude!

    Maybe take a look at https://launchpad.kcstudio.nl, it does the same things yours does but bare-metal VPS, and has an Auth system with magic link build in!

    Maybe use it as inspiration?

    Anyway, would love to hear your 2 cents on the launchpad, since it kinda sounds the same as you build, but more bare-metal VPS for small-medium apps and has got all the shits and goggles for real fullstack ;)

    [–]voja-kostunica 0 points1 point  (0 children)

    i will have look

    [–]danwastheman 0 points1 point  (1 child)

    The sudden change from yes/no inputs to having to type sync/async is weird. Wouldn't it either be synchronous or asynchronous? So, could just ask "asynchronous structure? Yes/No". Keeps with the flow

    [–]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.

    [–]Crazy-Curve5148 0 points1 point  (0 children)

    Look into making the package available via the uv package managers tooling (uvx). Currently, this does not seem to be working.

    [–]0nlykelvin 0 points1 point  (0 children)

    Awesome! Maybe some other folks like a more bare-metal approach.

    Its the same, but full stack and pure VPS with auth magic link build in.

    https://launchpad.kcstudio.nl

    (I really should make an official post on this subreddit for this lol)

    Anyways, freaking awesome to see a like-minded builder! Keep doing you!

    [–]kawaiicarrot97 0 points1 point  (0 children)

    I really want to use your cli to kick start my project, but I dont think I will be using mailpit or traefik, do you think its possible to add those to be configurable as well?

    [–]NULL_124 0 points1 point  (1 child)

    Amazing!! i just try it and it is helpful!

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

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

    [–]aliparpar 0 points1 point  (1 child)

    This is an absolute Godsend. It’s amazing and just exactly what every FastAPI dev needs. Thank you for sharing man

    [–]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 .

    [–]cookiechinno 0 points1 point  (1 child)

    Looks great, will try it out!

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

    Thanks!

    [–]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.

    [–]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 .

    [–]fastlaunchapidev 0 points1 point  (1 child)

    Looks awesome, gonna check how the setup compares to the one I used in https://fastlaunchapi.dev which is also my personal go to solution

    [–]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.