r/FastAPI • u/VisibleChallenge5585 • Nov 20 '21
Tutorial FastAPI + SQLModel + FastAPI-crudrouter + testcontainers setup
https://dimmaski.com/fastapi-sqlmodel-crud/
Hey all! It's my first time posting on this subreddit. I wrote a blog post on how I've been using FastAPI to create API services with zero boilerplate code, using sqlmodel + fastapi-crudrouter. I found that the methods described here allow me to prototype really quick, and take a test-first approach using testcontainers. I would appreciate a lot if you took a look and provided some feedback or possible improvements!
6
u/PeterJHoburg Nov 21 '21
I started using SQLModel the day it came out, and immediately ran into blocking issues. I submitted an issue, and someone made a PR to fix my issue. It has been 3 months and no fixes have been merged, no issues addressed, nothing.
SQLModel feels dead on arrival. Unfortunately.
2
u/xrex Mar 30 '22
What issues did you encounter? Are they solved now or are you using something else? Thanks
1
u/PhotoNavia Nov 21 '21
Neat ! There isn't much articles on using SQLModel yet as it's pretty recent, i'll give it a look tonight :)
1
u/SVWBEIII Nov 21 '21
I like this article, looks complete and can give you the debut to understand both FastAPI & SQLModel, I'm working to on article relate to Authentication Social Authorization using SQLModel and FastAPI & the HTTPX Library
3
u/prisonbird Nov 21 '21
i want to move my django project to fastapi but the boilerplate in the fastapi website frightened me so i just gave up. (it felt like it has a very steep learning curve)
your blog post made me think considering fastapi again. thanks