Git Product home page Git Product logo

inventory's Introduction

Inventory

Admin Inventory Management System built Flutter

This repo contains

  1. Admin app
  2. Merchant app
  3. Firebase functions

Getting Started

  1. Create a firebase project
  2. Add apps for android and ios. Two of each,one for admin and one for merchant.
  3. Ensure to replace the google services json and plist files for respective projects.
  4. Enable google sign in and firestore on firebase.
  5. Rename functions/src/index.copy.ts to functions/src/index.ts and fill in the appropriate email config

Roadmap

  • Move to MongoDb and Node Js backend
  • Better UI
  • Push notifications

Screenshots

Screenshot Screenshot Screenshot
---------------------------------------------------------------------------------- ---------------------------------------------------------------------------------- ----------------------------------------------------------------------------------
---------------------------------------------------------------------------------- ---------------------------------------------------------------------------------- ----------------------------------------------------------------------------------
---------------------------------------------------------------------------------- ---------------------------------------------------------------------------------- ----------------------------------------------------------------------------------

inventory's People

Contributors

newtonmunene99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inventory's Issues

Why are you moving to mongodb

For most of the people, firebase would be an ideal option. Also if you can list down the features of this app, that would be very helpful.

Error Run and Debug

Hi!

Good job with the flutter app ๐Ÿ‘
When running the 'merchant' I get the following output in the debug console:

lib/main.dart:1
Warning: Mapping new ns [http://schemas.android.com/repository/android/common/02]() to old ns [http://schemas.android.com/repository/android/common/01]()
Warning: Mapping new ns [http://schemas.android.com/repository/android/generic/02]() to old ns [http://schemas.android.com/repository/android/generic/01]()
Warning: Mapping new ns [http://schemas.android.com/sdk/android/repo/addon2/02]() to old ns [http://schemas.android.com/sdk/android/repo/addon2/01]()
Warning: Mapping new ns [http://schemas.android.com/sdk/android/repo/repository2/02]() to old ns [http://schemas.android.com/sdk/android/repo/repository2/01]()
Warning: Mapping new ns [http://schemas.android.com/sdk/android/repo/sys-img2/02]() to old ns [http://schemas.android.com/sdk/android/repo/sys-img2/01]()
: Error: The getter 'isEmailVerified' isn't defined for the class 'User'.
lib/pages/login.dart:184
- 'User' is from 'package:firebase_auth[/firebase_auth.dart]()' ('.[./../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.11/lib/firebase_auth.dart]()').
package:firebase_auth[/firebase_auth.dart]():1
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEmailVerified'.
                              if (user.isEmailVerified) {
: Error: The getter 'onAuthStateChanged' isn't defined for the class 'FirebaseAuth'.
lib/pages/splash.dart:15
- 'FirebaseAuth' is from 'package:firebase_auth/firebase_auth.dart' ('.[./../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.3.11/lib/firebase_auth.dart]()').
package:firebase_auth/firebase_auth.dart:1
Try correcting the name to the name of an existing getter, or defining a getter or field named 'onAuthStateChanged'.
      authService.auth.onAuthStateChanged.listen((user) {
: Error: 'currentUser' isn't a function or method and can't be invoked.
lib/pages/splash.dart:22
              user = await authService.auth.currentUser();
: Error: 'currentUser' isn't a function or method and can't be invoked.
lib/pages/verify.dart:74
 FirebaseUser user = await authService.auth.currentUser();
: Error: The method 'sendEmailVerification' isn't defined for the class 'FirebaseUser'.
lib/pages/verify.dart:75
- 'FirebaseUser' is from 'package:ofm_merchant[/providers/auth.dart]()' ('lib[/providers/auth.dart]()').
package:ofm_merchant/providers/auth.dart:1
Try correcting the name to the name of an existing method, or defining a method named 'sendEmailVerification'.
                  user.sendEmailVerification().then((_) {
: Error: The getter 'documents' isn't defined for the class 'QuerySnapshot<Object>'.
lib/providers/db.dart:29
- 'QuerySnapshot' is from 'package:cloud_firestore[/cloud_firestore.dart]()' ('.[./../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-3.1.10/lib/cloud_firestore.dart]()').
package:cloud_firestore/cloud_firestore.dart:1
 - 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'documents'.
          productsSnapshot.documents
: Error: The method 'document' isn't defined for the class 'CollectionReference<Map<String, dynamic>>'.
lib/providers/db.dart:46

And many similar errors... any ideas?

Struck at 'Installing build\app\outputs\flutter-apk\app.apk...'

I didn't change anything, I followed the instruction and ran the code, below is the log.

โˆš  Built build\app\outputs\flutter-apk\app-debug.apk.
E/AndroidRuntime(10780): FATAL EXCEPTION: main
E/AndroidRuntime(10780): Process: com.mindle.inventory.merchant, PID: 10780
E/AndroidRuntime(10780): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mindle.inventory.merchant/com.mindle.inventory.merchant.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.mindle.inventory.merchant.MainActivity" on path: DexPathList[[zip file "/data/app/com.mindle.inventory.merchant-5Wi-R0Kyd6WC0vFLuCkbvA==/base.apk"],nativeLibraryDirectories=[/data/app/com.mindle.inventory.merchant-5Wi-R0Kyd6WC0vFLuCkbvA==/lib/x86, /data/app/com.mindle.inventory.merchant-5Wi-R0Kyd6WC0vFLuCkbvA==/base.apk!/lib/x86, /system/lib, /system/product/lib]]
E/AndroidRuntime(10780): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3194)
E/AndroidRuntime(10780): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
E/AndroidRuntime(10780): 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
E/AndroidRuntime(10780): 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/AndroidRuntime(10780): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/AndroidRuntime(10780): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
E/AndroidRuntime(10780): 	at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(10780): 	at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime(10780): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
E/AndroidRuntime(10780): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(10780): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime(10780): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
E/AndroidRuntime(10780): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mindle.inventory.merchant.MainActivity" on path: DexPathList[[zip file "/data/app/com.mindle.inventory.merchant-5Wi-R0Kyd6WC0vFLuCkbvA==/base.apk"],nativeLibraryDirectories=[/data/app/com.mindle.inventory.merchant-5Wi-R0Kyd6WC0vFLuCkbvA==/lib/x86, /data/app/com.mindle.inventory.merchant-5Wi-R0Kyd6WC0vFLuCkbvA==/base.apk!/lib/x86, /system/lib, /system/product/lib]]
E/AndroidRuntime(10780): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
E/AndroidRuntime(10780): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(10780): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(10780): 	at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
E/AndroidRuntime(10780): 	at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:41)
E/AndroidRuntime(10780): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1243)
E/AndroidRuntime(10780): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3182)
E/AndroidRuntime(10780): 	... 11 more

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.