Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I was tired of writing backend APIs with the only purpose that they get consumed by the same app's frontend

PostgREST is great for this: https://postgrest.org

I run 6 React apps in prod, which used to consume APIs written with Falcon, Django and FastAPI. Since 2 years ago, they all consume APIs from PostgREST. I define SQL views for the tables I want to expose, and optionally a bunch of SQL grants and SQL policies on the tables if I have different roles/permissions in the app, and PostgREST automatically transforms the views into endpoints, adds all the CRUD + UPSERT capabilities, handles the authorization, filtering, grouping, ordering, insert returning, pagination, and so on.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: