Skip to content
/ Flutter-Loans Public template

A loan app for both Business and Personal loans with firebase authentication, Paystack API to verify user account and flutterwave api to facilitate card payments.

Notifications You must be signed in to change notification settings

givanho/Flutter-Loans

Repository files navigation

React Native Flutter-Loans

This is a React Native application for managing loans for both personal and business purposes.
The app uses Firebase for authentication, where both email signup and phone number signup are integrated.
The app also uses Firebase Firestore to store users' data, and it connects to
the Paystack API to get bank details of users.

Features

🔥 Firebase authentication
✉️ Email signup and phone number signup
🔥 Firebase Firestore for data storage
🌠 Paystack API integration for getting bank details of users
😊 Apply for personal loans
😊 Apply for business loans

Prerequisites

Before you start, make sure you have the following installed:

🤖 Node.js
⚛️ React Native expo
💻 VS Code or Your favorite IDE

Installation

1.Clone the repository:

git clone https://github.com/<your-username>/react-native-flutter-loans.git

2.Install dependencies:
cd react-native-loan-app
npm install

3.Run the app on an Android device or emulator:
npx react-native run-android

Or, run the app on an iOS device or emulator:
npx react-native run-ios

Or, run the app on expo:
npm expo start

Configuration

To configure Firebase authentication and Firestore, follow these steps:

Go to the Firebase console and create a new project.
Enable Authentication and Firestore in your Firebase project.

1.Install Firebase using npm:

npm install firebase

2.Initialize Firebase in your app and create a Firebase App object:
import { initializeApp } from 'firebase/app';

// TODO: Replace the following with your app's Firebase project configuration
const firebaseConfig = {
  //...
};

const app = initializeApp(firebaseConfig);

3.Access Firebase in your app:
import { initializeApp } from 'firebase/app';
import { getFirestore, collection, getDocs } from 'firebase/firestore/lite';
// Follow this pattern to import other Firebase services
// import { } from 'firebase/<service>';

// TODO: Replace the following with your app's Firebase project configuration
const firebaseConfig = {
  //...
};

const app = initializeApp(firebaseConfig);
const db = getFirestore(app);

// Get a list of cities from your database
async function getCities(db) {
  const citiesCol = collection(db, 'cities');
  const citySnapshot = await getDocs(citiesCol);
  const cityList = citySnapshot.docs.map(doc => doc.data());
  return cityList;
}

To use the Paystack API, you will need to sign up for a Paystack account and obtain an API key.
Once you have your API key, add it to the config.js file in the project.

Usage

Open the app on your Android or iOS device or emulator, and follow the on-screen instructions to sign up and apply for loans.

Contributing

Contributions are welcome! If you would like to contribute to this project, please fork the repository and create a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A loan app for both Business and Personal loans with firebase authentication, Paystack API to verify user account and flutterwave api to facilitate card payments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published