An open API service indexing awesome lists of open source software.

https://github.com/jecode93/user_authentication


https://github.com/jecode93/user_authentication

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

## Getting Started

This project demonstrates a simple Flutter app using Supabase authentication with Google. Follow the steps below to set up and run the project locally.

## Prerequisites
- [Flutter SDK](https://docs.flutter.dev/get-started/install) installed
- A [Supabase](https://supabase.com/) account

## Project Setup

#### Clone the Repository git
- `git clone https://github.com/jecode93/user_authentication.git`
- `cd user_authentication`

#### Install Dependencies
- Run the following command to install the necessary packages:
`flutter pub get`

#### Create a Supabase Project
- Go to [Supabase](https://supabase.com/) and create a new project.
- From the Supabase dashboard, go to Connecting to your new project section > Project API to get your API URL and Anon Key.

#### Configure OAuth Providers in Supabase
- In the Supabase dashboard, go to Authentication > Providers.
- Enable Google and Facebook providers and configure them with the required credentials.

#### Create a .env File

In the root directory of the project, create a file named `.env` with the following content, replacing `your-supabase-url` and `your-anon-key` with your Supabase details:

- `SUPABASE_URL=https://your-supabase-url.supabase.co`
- `SUPABASE_ANON_KEY=your-anon-key`

#### Running the App
Run the following command to start the application:

- `flutter run`

## Authors

👤 **Jean Emmanuel Cadet**
- GitHub: [@jecode93](https://github.com/jecode93)
- LinkedIn: [jean-emmanuel-cadet](https://www.linkedin.com/in/jean-emmanuel-cadet/)
- Facebook: [@jecode93](https://www.facebook.com/jecode93)
- Instagram: [@jecode93](https://instagram.com/jecode93)
- Twitter: [@jecode93](https://twitter.com/jecode93)