gregorip02 / flutter-login

Flutter app that implements a simple JWT authentication system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JWT Login

Una aplicación de flutter que integra un sistema de autenticación basado en JWT.

Instalación y arranque

Abre un terminal y ejecuta lo siguiente:

git clone --depth 1 https://github.com/gregorip02/flutter-login.git
cd flutter-login
flutter packages get
flutter run

Empezando

Para este ejemplo desarrollé una app de Express y la desplegué en heroku, puedes clonar el repositorio y correrlo en tu maquina si así lo prefieres. Dependiendo de tu elección has algunos cambios en el archivo lib/utils.dart:

Backend remoto

String getBaseUri() =>
  inReleaseMode() ?
    'https://backend-jwt.herokuapp.com' : 'https://backend-jwt.herokuapp.com';

Backend local

String getBaseUri() =>
  inReleaseMode() ?
    'https://backend-jwt.herokuapp.com' : 'http://<your-ip>:<your-port>';

Screenshots

About

Flutter app that implements a simple JWT authentication system.


Languages

Language:Dart 93.7%Language:Objective-C 4.2%Language:Java 2.1%