Giter Site home page Giter Site logo

flutter_mobile_shop's Introduction

Phone Store

Phone Store is a Flutter application that leverages Firebase for phone authentication, Riverpod for state management, Hive for local storage, and Build Runner for Riverpod code generation.

Table of Contents

Getting Started

If you are new to Flutter, please see the Flutter documentation to get started.

Project Setup

To setup the project on your local machine, please follow these instructions:

  1. Clone the repository:
    git clone https://github.com/yourusername/flutter_mobile_shop.git
    
  2. Navigate to the project directory:
    cd flutter_mobile_shop
    
  3. Get Flutter packages:
    flutter pub get
    
  4. Generate the Riverpod code:
    flutter packages pub run build_runner build
    

Firebase Setup

To setup Firebase:

  1. Create a new project on the Firebase Console.
  2. Follow the instructions to integrate Firebase with your Android and iOS projects.
  3. Enable phone authentication in your Firebase project by navigating to Develop -> Authentication -> Sign-in Method -> Phone.
  4. Download your Firebase configuration files, GoogleService-Info.plist for iOS and google-services.json for Android, and place them in the respective directories.

*Note please do not forget to add your SH1 key to firebase.

Hive Setup

Hive is a lightweight and blazingly fast key-value database written in pure Dart. No additional setup is required for Hive.

Usage

This project uses Riverpod for its state management. Each feature or functionality of the application that requires state management is isolated into its own "provider".

Phone authentication via Firebase has been integrated into this application. Users can authenticate themselves using their phone numbers.

Data persistence is achieved using Hive. Data is stored locally and can be retrieved even when the app is offline or restarted.

Running the App

To run the app, navigate to the project's root directory and run:

flutter run

flutter_mobile_shop's People

Contributors

armankubak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.