Hasura Todo API with Auth0 and GraphQL

Open-sourced TODO-API, no backend required.

ยท

2 min read

Hasura Todo API with Auth0 and GraphQL

WELCOME!

Good day and welcome! My name is Mahdi, and in this series of articles, I'll be discussing my progress in building a "Todo API" in participating in the #Hasura #Hashnode Hackathon.

OVERVIEW

In normal cases, a full-stack Todo app must have the interface (frontend) as well the server (backend) for handling requests from the frontend, requests like sign up/sign in, TODO CRUD operations, etc.

This "Todo API" is an API that enables frontend developers to create a full-stack TODO application with zero knowledge of backend development.

The developer will only focus on the front end of their application (mobile or web) and let the "Todo API" API handle the rest for them.

Technologies

  • Hasura Which instantly turns your relational database into a GraphQL or Rest API.

When developing a full-stack project, the end-user will certainly need to communicate with a database, which involves the creation of a secure API in the middle that allows the client to tell the server what it requires from the database.

However, creating a flawless API is easier said than done, although frontend developers enjoy GraphQL, while backend developers are left withing writing efficient SQL queries to resolve queries in the backend.

Hasura saves a lot of time for the backend developer by providing auto-generated resolvers for the frontend consumption without too much headache. To know more about Hasura click here.

  • GraphQL for fetching data from backend to frontend
  • Auth0 for authentications and authorizations

Steps Overview

  • Setting up Hasura cloud database
  • Users privileges.
  • Users authentications/authorization
  • Sign up and sign-in of API consumers (App/Developers)
  • Sign up and sign-in of App consumers (Users)

What is Next?

Next step, I will be setting up our Hasura cloud by creating a new project. To follow along, head over to Hasura and sign up.

More!!!

That is it for now, till we meet in volume 1

Always, you can follow me on Twitter at @NigerianCoder, Github @Mahdi, and IG at @NigerianCoder to see my progress. DMs are always open for work, friendship, and relationships :)

ย