Skip to content

Repository files navigation

1 2 3

Shopping App

Overview

The shopping app is a flutter mobile application that presents a user-friendly interface where customers can browse through a variety of products effortlessly. Products are fetched from your WooCommerce backend API and Firestore database serves as the backbone for storing and managing user-specific data such as wishlist items and items added to the shopping cart, the app utilizes the Provider package for efficient state management across various components and uses Hive for saving the current user model in local data

Disclaimer

This app is intended to use with specific WooCommerce site, others may have a json parsing error of the WooCommerce REST API data

Features

  1. Browse through the different categories and add your favourite products to cart.

  2. Add any product to your wishlist and check them at your wishlist page.

  3. Login or register by Google, Phone OTP or email to save all your user data (cart,wishlist,addresses) to your account.

  4. Ability to add multiple addresses to use for checkout.

  5. Check for all the available Coupons and claim them for discounts.

Getting Started

1. Setup the Firebase App

  1. You’ll need to create a Firebase instance. Follow the instructions at https://console.firebase.google.com.
  2. Once your Firebase instance is created, you’ll need to enable all the authentication methods.
  3. Go to the Firebase Console for your new instance.
  4. Click “Authentication” in the left-hand menu
  5. Click the “sign-in method” tab
  6. Click “Google” and enable it
  7. Click "Phone" and enable it
  8. Click "Email" and enable it

2. Enable the Firestore Database

  1. Navigate to the Firebase Console.
  2. Select your Firebase project.
  3. Go to the "Database" section.
  4. Choose Firestore as your database.
  5. Setting Up Security Rules (Optional): You can set up security rules to control access to your Firestore database. Learn more about Firestore security rules here.

3. (skip if not running on Android)

  1. Create an app within your Firebase instance for Android, with package name com.yourcompany.news
  2. Run the following command to get your SHA-1 key: keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
  3. In the Firebase console, in the settings of your Android app, add your SHA-1 key by clicking “Add Fingerprint”.
  4. Download google-services.json and place it into /android/app/.

4. (skip if not running on iOS)

  1. Create an app within your Firebase instance for iOS, with your app package name
  2. Download GoogleService-Info.plist
  3. Open XCode, right click the Runner folder, select the “Add Files to ‘Runner'” menu, and select the GoogleService-Info.plist file to add it to /ios/Runner in XCode
  4. Open /ios/Runner/Info.plist in a text editor. Locate the CFBundleURLSchemes key. The second item in the array value of this key is specific to the Firebase instance. Replace it with the value for REVERSED_CLIENT_ID from GoogleService-Info.plist

5. Setting up Environment Variables

  1. Rename .env.example file to .env.
  2. Add your firebase project apiKey and appId

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages