For those who aren't familiar with Apito yet, Apito helps you build your API on Cloud. Apito generates REST API and GraphQL Server from the models you define. Its the best tool i found for quick prototyping my apis instantly within minutes.
Git repo: flutter_apito_note_taking_app
So, In this tutorial we are going to build a simple flutter TODO app to understand the basic functionalities of Apito in a comfortable way. For this time we will be using Apito RESTApi service but you can use GraphQL if it suites you.
First login in Apito (Register if you haven't already). Create a new project (Name it "TODO Notes").
For creating reading or making any change into database from client side we must have a token for prohibiting any unwanted access. As of now we will be use one admin token for everyone, so our notes will be publicly accessible. Later we will implement login/register functionality.
For this, go to setting->Api Secrets
Create a new token, Give any name to it, choose role "Admin" and set expiration date.
Now go to Git repo, clone this skeleton flutter project and open it in your favorite IDE.
in the project directory go open lib/infrustructure/note_provider.dart
In line 11 and 12 place your project base url and token.Then run the app and see the magic !!