maxis-code-logo

Maxis Code

Hasura + Auth0 + NextJS


Hasura + Auth0 + NextJS-cover-image
Photo by: Mourizal Zativa - https://unsplash.com/@mourimoto

I recently started building my personal site and I wanted to use NextJS, Hasura, and Auth0 for its foundations.

NextJS is a super awesome framework that allows you to easily build React apps with built-in routing, code-splitting, production builds, static site generation, and a bunch of other really neat things. It gets out of your way and allows you to quickly build the app you want.

Hasura gives you a GraphQL endpoint that sits on top of a Postgres database and has the concept of Remote Schemas allowing you to connect other GraphQL endpoints to have a single unified GraphQL endpoint for your app. You get row and column access controls built-in, so no need to worry about rolling your own access control mechanisms.

Finally, Auth0 provides authentication for the whole thing, if you ever want to have a gated section for your app. It takes away the pain, and it's a pain, of rolling your own authentication.

There are good guides on Next, Auth0, and Hasura out there, but there are some quirks to get them connected in a nice way.

Credits: Guide from Hasura

Comments


Please sign in to view and leave comments...