4 ms·
This is similar to what we're doing! Hasura + AutoCRUD framework + Metabase is a great stack for putting together a solid business application in no time. Comb
by cpursley 7y ago
This is similar to what we're doing! Hasura + AutoCRUD framework + Metabase is a great stack for putting together a solid business application in no time.
Combine Hasura (automatic GraphQL on top of PostgreSQL) with React Admin (low code CRUD apps similar to Forest) and you can build an entire back office admin suite or form app (API endpoints and admin front end) in a matter of hours.
This adaptor connects react-admin with Hasura: https://github.com/Steams/ra-data-hasura-graphql https://github.com/Steams/ra-data-hasura-graphql
Here's a reference application I put together: https://github.com/cpursley/react-admin-low-code https://github.com/cpursley/react-admin-low-code
And we're taking a step further and using Elixir to listen to Postgres table changes for an "Event" style architecture: https://medium.com/hackernoon/get-notified-of-user-signups-and-plan-changes-automatically-using-postgres-phoenix-pubsub-e67d061b04bc https://medium.com/hackernoon/get-notified-of-user-signups-a...
- gavinray 7y agoHey man, really cool to see you comment here! We've chatted in the Hasura Discord briefly, love your work with the React Admin adapter. RA requires more manual work to set up and the aesthetics are different (Material UI), but it also gives you more flexibility. For anyone looking for a self-hosted solution that can be more easily whitelabeled, highly recommend cpursley's work. You should pop by the server chat more often =D
- dvasdekis 7y agoI've taken your stack one step further, with a completely dockerised solution that uses Firebase as an authentication solution (authentication is missing from the current low-code example). It can be run locally or on a cloud provider that runs containers (e.g. GCP Compute Create-With-Container). See here: https://github.com/dvasdekis/react-admin-hasura-firebase/ https://github.com/dvasdekis/react-admin-hasura-firebase/ Thanks to gavinray also for the help with this!
- deleted 7y ago[deleted]
- pricci 7y agoThanks for this! I will add it to a project.
- cpursley 7y agoThis is awesome. I haven't had time to expand react-admin-low-code, so glad to see someone take the general idea and run with it. I'll update the Readme to mention your repo when I have a chance. What we're doing in our production version of this is using Postgres and Hasura for auth following this approach in order to reduce external dependencies: https://github.com/sander-io/hasura-jwt-auth https://github.com/sander-io/hasura-jwt-auth It's really amazing how far you can get with just Postgres. Writing business logic with code in application middleware always felt hacky to me when we have these powerful and performant relation databases.
- dvasdekis 7y agoTotally agree! Although I'm one of the contributors to that repo as well, the sheer number of possible attack vectors on the JWT scheme means that I was reluctant to use it in a publicly-facing use case. Let me know how it goes!
- cpursley 7y agoWhat are your biggest concerns about the Pg/Hasura JWT approach (which particular attack vectors made you nervous)?
- pricci 7y agoHey, thanks for the adapter. It works great! I'm using it in 2 small projects.
- sseppola 7y agoMay I ask, why not just use the official provider? https://github.com/hasura/ra-data-hasura https://github.com/hasura/ra-data-hasura