It is an inventory and sales management app made using Flutter and Appwrite.
This project is made for #appwritehack submitted at here.
First of all you need to setup Appwrite.
After creating a project on Appwrite enable platforms which ever you want to develop for with identifier as com.darshan.stocker
Create collections in database with attributes:
category:
- name: string
- productCount: integer
- color: integer
product:
- categoryId: string
- name: string
- costPrice: double
- sellingPrice: double
- quantity: double
- color: integer
customer:
- name: string
- email: email
- phone: string
transaction:
- productId: string
- productName: string
- quantity: double
- sellingPrice: double
- costPrice: double
- timestamp: string
- transactionType: enum(buy, sell)
- customerId: string
To update category.productCount I have used functions to deploy it
Use appwrite-cli
The function could be found in ./appwrite-functions directory
After setting up everything on appwrite we should update the secrets
Rename secrets.dart.example to secrets.dart and fill in the empty string.
Run flutter pub get to get all the dependencies and finally flutter run to run the app















