News for hackers. Stuff that matters.
Re:Firebase as a React Hook by friedman23 on Wednesday January 15, 2020 @04:41PM (#22059026)
I don't mind using SQL (and I would actually prefer it) but what I want to avoid is having to build an api middleware with auth for my personal projects. Are there any alternatives to firebase you would recommend that would allow me to use SQL without having to build out an API?
Re:Firebase as a React Hook by elitan on Wednesday January 15, 2020 @05:08PM (#22059307)
I was in the exact same position as you one year ago. Then I found Hasura (https://hasura.io) and built Nhost (https://nhost.io). While building Nhost I always had Google Firebase in mind regarding how good they are for the developer experience.
Re:Firebase as a React Hook by kiwicopple on Wednesday January 15, 2020 @05:49PM (#22059688)
I went through the exercise of replaceing our Firebase with Postgres last year. In the process I built a middleware abstraction that I am opensourcing now : https://supabase.io

As a bonus it even has real-time functionality

Re:Firebase as a React Hook by gregplaysguitar on Thursday January 16, 2020 @02:27AM (#22062339)
Check out postgraphile, and graphile starter - https://github.com/graphile/starter

Combined with graphql-codegen you can essentially generate react hooks from a Postgres schema. It’s awesome - and all typed if you’re using typescript too

Re:Firebase as a React Hook by nicoburns on Thursday January 16, 2020 @06:14PM (#22070108)
May I ask why? I've always found this to be one of the simplest and least painful parts of any web project. And any 3rd party server has inevitably become a problem when the project grew to the point that we wanted something that they didn't have a solution for.
Re:Firebase as a React Hook by crench on Wednesday January 15, 2020 @04:51PM (#22059139)
PostgREST does this fairly well.