Scaffold UI
Scaffolds an authentication UI in your Nylo project.
Getting Started
In your Flutter project add the dependency:
With Dart:
dart pub add scaffold_ui
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
...
scaffold_ui: ^1.1.2
Usage
Step 1: Run the below command in your project.
dart run scaffold_ui:main auth
Select from the following options:
- Supabase -
supabase
- Laravel -
laravel
- Basic -
basic
Supabase Installation
You'll first need a Supabase account and a project setup.
After you run dart run scaffold_ui:main auth
and select supabase
, you'll be prompted to enter your Supabase URL and Anon Key.
Laravel Installation
You'll first need a Laravel project setup.
You're User
model should be using the HasApiTokens
trait (Laravel Sanctum).
Next, you'll need to install the Laravel composer package laravel-nylo-auth.
You can install the package via composer:
composer require nylo/laravel-nylo-auth
You can publish with:
php artisan vendor:publish --provider="Nylo\LaravelNyloAuth\LaravelNyloAuthServiceProvider"
Now, run dart run scaffold_ui:main auth
and select laravel
.
It will ask you for your Laravel project URL.
Check out the Laravel package here for more information.
Basic Installation
If you select basic
when running dart run scaffold_ui:main auth
, it will scaffold a basic authentication UI.
You will need to implement the authentication logic yourself.
Changelog
Please see CHANGELOG for more information what has changed recently.
Licence
The MIT License (MIT). Please view the License File for more information.
Libraries
- cli_dialog/cli_dialog
- cli_dialog/src/dialog
- cli_dialog/src/keys
- cli_dialog/src/list_chooser
- cli_dialog/src/services
- cli_dialog/src/stdin_service
- cli_dialog/src/stdout_service
- cli_dialog/src/xterm
- models/ny_laravel_slate_config
- models/ny_supabase_slate_config
- scaffold_ui
- stubs/basic/basic_dashboard_stub
- stubs/basic/basic_forgot_password_controller_stub
- stubs/basic/basic_login_controller_stub
- stubs/basic/basic_register_controller_stub
- stubs/forgot_password_page_stub
- stubs/landing_stub
- stubs/laravel/laravel_api_service
- stubs/laravel/laravel_auth_api_serivce_stub
- stubs/laravel/laravel_auth_event_stub
- stubs/laravel/laravel_auth_response
- stubs/laravel/laravel_dashboard_stub
- stubs/laravel/laravel_forgot_password_controller_stub
- stubs/laravel/laravel_login_controller_stub
- stubs/laravel/laravel_register_controller_stub
- stubs/laravel/laravel_user_model_stub
- stubs/login_form
- stubs/login_page_stub
- stubs/register_form
- stubs/register_page_stub
- stubs/supabase/supabase_dashboard_stub
- stubs/supabase/supabase_forgot_password_controller_stub
- stubs/supabase/supabase_login_controller_stub
- stubs/supabase/supabase_logout_event_stub
- stubs/supabase/supabase_provider_stub
- stubs/supabase/supabase_register_controller_stub
- stubs/supabase/supabase_register_page_stub