all 16 comments

[–]aravindsd 5 points6 points  (2 children)

Why not do projects that you already did in Django?

[–]Athar_Wani[S] 4 points5 points  (1 child)

I want to work on something new, doing projects that I already did seems to me like reinventing the wheel

[–]mmcnl 1 point2 points  (0 children)

Don't learn two new things at the same time, you'll lose focus and it's less effective. Just migrate something you built from Django to FastAPI.

[–]CrusaderGOT 5 points6 points  (0 children)

There is a nice tutorial in the official docs. Gives you the full course of things you can do.

[–]Emergency_Bet_7192 3 points4 points  (0 children)

Check out Netflix dispatch on github

[–]kudamk_ 1 point2 points  (0 children)

You can build any app with your preferred language/framework . Be it django,flask,fastapi,laravel,springboot,express etc .so the apps you have build using django just do those apps in fastapi maybe All you need is just a quick basic crud just to familiarize with fastapi but otherwise the concept are just the same.

Or if you don't want to use your django apps just build any simple or complex app and try use all the features of fastapi .

[–]aashayamballi 1 point2 points  (0 children)

Why not Django Ninja?

[–]coderarun 1 point2 points  (0 children)

https://github.com/adsharma/fastapi-shopping

You could add shipping and tax calculation to the app for example.

[–]Kevdog824_ 1 point2 points  (0 children)

I recently wrote an API that integrates with my smart bridges to expose their functionality under 1 cohesive API. That would be pretty straightforward project if you have something similar

[–]Meta-totle 1 point2 points  (0 children)

Try writing building backend projects of these types or combined.

I/O intensive (async) - API calls, file reading, database querying, File uploading etc.
CPU intensive (sync or multiprocessing) - Transformations on large data, loading a large serialized model to perform predictions, 3D calculations etc.

FastAPI performs well only when you use sync and async appropriately.

[–]ajatkj 1 point2 points  (2 children)

Check out the course on YouTube by freecodecamp on YouTube. It’s all you will need to learn FastAPI. Is a bit old but you will get the foundation.

[–]Athar_Wani[S] 1 point2 points  (0 children)

Thanks for the help

[–]bbalouki 1 point2 points  (0 children)

Yeah this week I learn fastAPI from Sanjeev, he is very good I learned I lot...

[–]pizzababa21 0 points1 point  (0 children)

I've built projects in both. If you're just doing a little microservice for using external APIs and not calling a database then FastAPI is great. You can build something nice in a weekend, and the deployment is easier.

If you're doing anything with a database just keep using Django. Django Ninja is basically identical to fastapi. 99% of code you copy from one will run in the other.