r/reactjs • • Sep 27 '22

We built a Postgres Database UI using Next.js on top of Hasura’s GraphQL Engine

550 Upvotes

26 comments sorted by

29

u/elitasson Sep 27 '22 edited Sep 27 '22

Hello World Developers!

We’ve built a Postgres Database UI using Next.js, React (and TypeScript) on top of Hasura’s GraphQL Engine. We wrote a detailed blog post on how we did it: https://nhost.io/blog/new-database-ui

As you see, it’s easy to create a table and instantly get a GraphQL API.

The Nhost stack is open source and available on GitHub: https://github.com/nhost/nhost.

The Dashboard is not yet open source, but it’s something we plan to do before the end of the year.

Let me know if you have any questions!

1

u/[deleted] Sep 29 '22

Is the free tier only for 30 days?

1

u/elitasson Sep 29 '22

No, there is no time limit on the free tier.

But free projects sleep after seven days if there is no activity.

2

u/[deleted] Sep 27 '22

Loved it

4

u/michael98118 Sep 27 '22

what do u mean by not yet open source? it's here right?

9

u/henrik_thetechie Sep 28 '22

What they mean is that this new next.js dashboard is not in that open source repo.

18

u/addiktion Sep 27 '22 edited Sep 27 '22

Definitely seems more user friendly than the one Hasura has integrated. I just worry it would lag behind their changes but nice work on this!

8

u/elitasson Sep 27 '22

Thanks for the feedback.

What's good is that the Nhost Dashboard and the Hasura Console can work side-by-side, so you don't have to choose one over the other.

11

u/JoeCamRoberon Sep 27 '22

Great looking UI. Did you use a UI component library?

4

u/elitasson Sep 28 '22

Yes, we used Material UI. We'll have a post explaining why in the next few weeks.

4

u/vertigo_101 Sep 27 '22

Looks amazing, great work

2

u/elitasson Sep 28 '22

Thank you! 🙏

3

u/luism6n Sep 27 '22

Looks really nice! How does this compare to something like DBeaver?

1

u/elitasson Sep 28 '22

Thanks, don't know about DBeaver. Please try it out and let us know what you think compared to DBeaver.

3

u/[deleted] Oct 14 '22

That's the nicest looking database client UI I've ever seen. I'm used to clunky, legacy looking uis. Often I just settle for adminer.php for its speed and ease of setup being a single file.

1

u/elitasson Oct 15 '22

Thank you, we're glad you like it.

1

u/DoNotEverListenToMe Sep 28 '22

Trying to try it out as I was looking for somehting like this for a project but database just sits and spins on loading schemas and tables.

Will try again tomorrow

1

u/elitasson Sep 28 '22

OH, that's unfortunate. I hope it was resolved. If not, you can get help on GitHub (https://github.com/nhost/nhost) or Discord (https://nhost.io/discord).

1

u/DoNotEverListenToMe Sep 30 '22

For some reason it hates my Chrome but works in another browser. Its cool, I think we will use it.

1

u/Fru___ Sep 28 '22

Looks amazing tbh. You guys really did a great job with the UI.

1

u/elitasson Sep 28 '22

Thank you!

0

u/Laserdude10642 Sep 28 '22

What does it do that I can’t do through hasura already

1

u/elitasson Sep 28 '22

The focus was to make a snappy, modern, and good-looking database UI. The goal with our database UI is to pair with the Hasura Console eventually.

2

u/Laserdude10642 Sep 28 '22

It very much feels like you have mostly replicated the hasura console.

1

u/elitasson Sep 28 '22

Did you read our article where we go into the details of why we built the database UI?

It's available here: https://nhost.io/blog/new-database-ui