Skip to content

Jackk-Doe/Basic_AUTH_with_Flutter_FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic_AUTH_with_Flutter_FastAPI

Basic SignIn / SignUp Auth with Flutter & FastAPI.
Using JWT that generated from FastAPI, to be stored in-device in Flutter app, and to get user account datas.

Tech-stack using :

  • Flutter : for client app
    • Provider : for state management system
    • Shared-Preferences : for device local data storing
  • FastAPI : for server app
    • SQLite : simple database using
    • OAuth2 : security protocol

To Run App

1. Run backend FastAPI app

Go to server folder :

cd server

Install all necessary pip package :

pip install -r requirements.txt

Run the server with :

python main.py

NOTE : Since the backend server is written in FastAPI, it comes with built-in OpenAPI documentation page, generate by Swagger, which contains all informations about all available routes.
After running backend app, from browser go to : localhost:8000/docs

2. Run client Flutter app

Go to client folder :

cd client_app

Run the app with this below command, or from editor

flutter run

Sample running app screenshots :

  1. Sign-Up page screen

Screen Shot 2022-10-23 at 10 02 35 PM

  1. Sign-In page screen

Screen Shot 2022-10-23 at 10 02 44 PM

  1. Home page screen (after auth)

Screen Shot 2022-10-23 at 10 02 29 PM

About

Basic SignIn / SignUp Auth with Flutter (client) & FastAPI (server) + Sqlite

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors