Anyone thought of connecting Hasura to Discourse's Postgres database for a potentially more customised (or narrowed down) FE?

So fun, this is exactly what I did some days ago!
I’m working with Hasura/nuxt.js since one year on different projects.
Hasura is very powerful, and the coming features are very promising!

I very like discourse forum (but don’t know Ruby and Ember), so I tried to plug Hasura on it.

As I’m not ruby dev, I need to install it but I got some problems to install dev environment on my mac. I struggle with cppjieba_rb gem…

So I just take this dump and setting up in postgresql and Hasura.

All tables seems to be imported. There is only one view? (badge_posts)
I also tracked all foreign-keys relationships, so I can do this kind of query:

{
  posts {
    id
    user_id
    bookmarks {
      id
      name
    }
    uploads {
      id
      url
    }
  }
}

That’s where I am now…

1 Like