<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ambanikousik</title>
    <description>The latest articles on DEV Community by ambanikousik (@ambanikousik).</description>
    <link>https://dev.to/ambanikousik</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F289693%2F1c5dafff-21cc-4d3a-a8f2-31c614d7b49f.jpeg</url>
      <title>DEV Community: ambanikousik</title>
      <link>https://dev.to/ambanikousik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ambanikousik"/>
    <language>en</language>
    <item>
      <title>Build Flutter TODO app with APITO</title>
      <dc:creator>ambanikousik</dc:creator>
      <pubDate>Sun, 04 Apr 2021 11:32:37 +0000</pubDate>
      <link>https://dev.to/ambanikousik/build-flutter-todo-app-with-apito-1okl</link>
      <guid>https://dev.to/ambanikousik/build-flutter-todo-app-with-apito-1okl</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/UduPsFoOHAc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;For those who aren't familiar with &lt;a href="https://apito.io/" rel="noopener noreferrer"&gt;Apito&lt;/a&gt; yet, &lt;a href="https://apito.io/" rel="noopener noreferrer"&gt;Apito&lt;/a&gt; helps you build your API on Cloud with Authentication, Authorization, CDN, Webhooks, Custom Functions gives you a Content Management Console through a unified API powered by both GraphQL &amp;amp; RESTApi.&lt;/p&gt;

&lt;p&gt;So, In this tutorial we are going to build a simple flutter TODO app to understand the basic functionalities of &lt;a href="https://apito.io/" rel="noopener noreferrer"&gt;Apito&lt;/a&gt; in a comfortable way. For this time we will be using &lt;a href="https://apito.io/" rel="noopener noreferrer"&gt;Apito&lt;/a&gt; RESTApi service. &lt;/p&gt;

&lt;p&gt;First login in &lt;a href="https://apito.io/" rel="noopener noreferrer"&gt;Apito&lt;/a&gt; (Register if you haven't already). Create a new project (Name it "TODO Notes").&lt;/p&gt;

&lt;h3&gt;
  
  
  1) Go to Models tab and create a new model named Note:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1611864898%2Fapito_model_p4485k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1611864898%2Fapito_model_p4485k.png" alt="Create Model"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;title - Single line text field&lt;/li&gt;
&lt;li&gt;note - single line text field&lt;/li&gt;
&lt;li&gt;timestamp - double&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2) Go to Contents tab and create some demo data:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1611921843%2Fapito_2_p1cqqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1611921843%2Fapito_2_p1cqqd.png" alt="Create Content"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3) Get permission token:
&lt;/h3&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;For this, go to &lt;strong&gt;setting-&amp;gt;Api Secrets&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create a new token, Give any name to it, choose role "Admin" and set expiration date.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1611922421%2Fapito_3_qwsuji.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1611922421%2Fapito_3_qwsuji.png" alt="Create Token"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4) Flutter part:
&lt;/h3&gt;

&lt;p&gt;Now go to &lt;a href="https://github.com/ambanikousik/flutter_apito_note_taking_app" rel="noopener noreferrer"&gt;Git repo&lt;/a&gt;, clone this skeleton flutter project and open it in your favorite IDE. &lt;/p&gt;

&lt;p&gt;in the project directory go open &lt;strong&gt;lib/infrustructure/note_provider.dart&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1617533420%2Fflutter-apito-note_efo5td.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1617533420%2Fflutter-apito-note_efo5td.png" alt="note_provider.dart"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In line 11 and 12 place your project base url and token.Then run the app and see the magic !! &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.squadhead.com/blog/apito-flutter-note" rel="noopener noreferrer"&gt;This post is also published in SquadHead&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1617539079%2Fportfolio%2FHiShoot_20210404_160252_ba2bds.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1617539079%2Fportfolio%2FHiShoot_20210404_160252_ba2bds.png" alt="aptio todo 1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1617538784%2Fportfolio%2FHiShoot_20210404_160231_uvn3xz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fsquad-head%2Fimage%2Fupload%2Fv1617538784%2Fportfolio%2FHiShoot_20210404_160231_uvn3xz.png" alt="aptio todo 2"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>apito</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
