Login With Compose is a modern Android application that provides a seamless experience for users to register, log in, and manage their accounts. Built with Jetpack Compose and integrated with Firebase, this app leverages the latest technologies to offer a user-friendly interface and robust backend services.
- User registration
- Login with email and password
- Anonymous login
- User logout
- Kotlin: The primary programming language for Android development.
- Jetpack Compose: A modern toolkit for building native UI.
- Firebase Authentication: For secure user authentication and management.
- Hilt: A dependency injection library for Android.
- Coroutines: For asynchronous programming and managing background tasks.
To run the application on your local machine, follow these steps:
- Android Studio: Make sure you have the latest version installed. Download it from here.
- Java Development Kit (JDK): JDK 1.8 or higher is required.
- Go to the Firebase Console.
- Click on "Add project" and follow the setup steps to create a new project.
- In your Firebase project, click on the "Add app" button and select Android.
- Enter your app's package name (e.g.,
com.example.loginwithcompose) and other required details.
- After registering your app, you will be prompted to download the
google-services.jsonfile. - Place this file in the
app/directory of your project. This file contains important configuration information for Firebase services.
- In the Firebase console, navigate to the Authentication section.
- Click on "Get Started" to enable the authentication module.
- Under the Sign-in method tab, enable the sign-in methods you wish to support (e.g., Email/Password). This will allow users to register and log in using their email addresses.
- If your app requires Firestore for storing user data, navigate to the Firestore Database section in the Firebase console and create a database. Follow the prompts to set up Firestore.
-
Ensure that the
google-servicesplugin is applied in your project-levelbuild.gradlefile:buildscript { dependencies { classpath 'com.google.gms:google-services:4.3.10' // Update to the latest version } }
Open your terminal and clone the repository using the following command:
git clone [https://github.com/AlexRaya25/Login-With-Compose.git]
cd Login-With-Compose
