-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
482f531
commit c48a645
Showing
209 changed files
with
24,009 additions
and
0 deletions.
There are no files selected for viewing
2,630 changes: 2,630 additions & 0 deletions
2,630
Postman/PickerPacker_heroku.postman_collection.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,539 changes: 2,539 additions & 0 deletions
2,539
Postman/PickerPacker_local.postman_collection.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
# Picker-Packer-App | ||
Picker & Packer Mobile App | ||
|
||
This is an application that will manage the preparation and delivery process of orders placed in e-commerce markets. The application includes 2 different modes, picker and packer. | ||
Picker is the mode that manages the preparation process of the orders, and Packer is the mode that manages the delivery process of the order to the customer. | ||
The functions of the application are in the slide or file in the "doc" section. | ||
A demo video is available at the link below. | ||
|
||
## Backend Development | ||
Python Flask was preferred as REST API Framework. | ||
SqlAlchemy (ORM) module, which is used to connect to the database and run the queries, is preferred for simplicity. | ||
Google Map APIs used for the map integration. (Google Map Directions and Google Map Distance Matrix APIs) | ||
Heroku and Render providers were preferred for deploying APIs in the cloud. | ||
PostgreSql was preferred as the database. | ||
|
||
## Frontend Development | ||
The widgets, models and animations provided by Flutter were used. | ||
The development is based on the MVC model. | ||
In the code, data is in classes called models, RESTAPI requests are in classes called provider, and interface pages are in classes called View. | ||
SnackBar, AlertDialog, Email Validator, AppBar, Navigation Bar, Refresh Indicator, Slidable, ListView, Call Launcher, Map Launcher, Barcode Scanner Image Picker, Page Transition, Geolocator, SpinKit Custom Loading, Others... | ||
|
||
Video Link: https://youtu.be/S093CF6Evw8 | ||
|
||
Furkan Özev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- public.account definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE account; | ||
|
||
CREATE TABLE account ( | ||
account_id serial4 NOT NULL, | ||
"name" varchar(100) NOT NULL, | ||
email varchar(100) NOT NULL, | ||
"password" varchar(100) NOT NULL, | ||
phone varchar(100) NOT NULL, | ||
age int4 NOT NULL, | ||
"mode" int4 NOT NULL, | ||
photo bytea NULL, | ||
create_date varchar(100) NOT NULL, | ||
update_date varchar(100) NOT NULL, | ||
last_login_date varchar(100) NOT NULL, | ||
is_active bool NOT NULL DEFAULT true, | ||
CONSTRAINT account_pk PRIMARY KEY (account_id), | ||
CONSTRAINT account_un UNIQUE (email), | ||
CONSTRAINT account_un2 UNIQUE (phone) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- public.carts definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE carts; | ||
|
||
CREATE TABLE carts ( | ||
cart_id serial4 NOT NULL, | ||
barcode varchar(100) NOT NULL, | ||
create_date varchar(100) NOT NULL, | ||
CONSTRAINT carts_pk PRIMARY KEY (cart_id), | ||
CONSTRAINT carts_un UNIQUE (barcode) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- public.category definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE category; | ||
|
||
CREATE TABLE category ( | ||
category varchar(100) NOT NULL, | ||
subcategory varchar(100) NOT NULL, | ||
is_cold bool NOT NULL DEFAULT false, | ||
category_id serial4 NOT NULL, | ||
create_date varchar(100) NOT NULL, | ||
update_date varchar(100) NOT NULL, | ||
CONSTRAINT category_pk PRIMARY KEY (category_id), | ||
CONSTRAINT category_un UNIQUE (category, subcategory) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- public.item definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE item; | ||
|
||
CREATE TABLE item ( | ||
"name" varchar(100) NOT NULL, | ||
price float4 NOT NULL, | ||
barcode varchar(100) NOT NULL, | ||
item_id int4 NOT NULL DEFAULT nextval('items_item_id_seq'::regclass), | ||
category_id int4 NOT NULL, | ||
create_date varchar(100) NOT NULL, | ||
update_date varchar(100) NOT NULL, | ||
CONSTRAINT items_pk PRIMARY KEY (item_id), | ||
CONSTRAINT items_un UNIQUE (barcode), | ||
CONSTRAINT items_un2 UNIQUE (name) | ||
); | ||
|
||
|
||
-- public.item foreign keys | ||
|
||
ALTER TABLE public.item ADD CONSTRAINT items_fk FOREIGN KEY (category_id) REFERENCES category(category_id) ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- public.packer_user definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE packer_user; | ||
|
||
CREATE TABLE packer_user ( | ||
account_id int4 NOT NULL, | ||
packer_active bool NOT NULL DEFAULT true, | ||
open_order int4 NOT NULL DEFAULT 0, | ||
cancel_order int4 NOT NULL DEFAULT 0, | ||
complete_order int4 NOT NULL DEFAULT 0, | ||
packer_id int4 NOT NULL DEFAULT nextval('packer_user_picker_id_seq'::regclass), | ||
CONSTRAINT packer_user_pk PRIMARY KEY (packer_id), | ||
CONSTRAINT packer_user_un UNIQUE (account_id) | ||
); | ||
|
||
|
||
-- public.packer_user foreign keys | ||
|
||
ALTER TABLE public.packer_user ADD CONSTRAINT packer_user_fk FOREIGN KEY (account_id) REFERENCES account(account_id) ON DELETE CASCADE ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- public.packerorderitems definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE packerorderitems; | ||
|
||
CREATE TABLE packerorderitems ( | ||
id serial4 NOT NULL, | ||
order_id int4 NOT NULL, | ||
item_id int4 NOT NULL, | ||
amount int4 NOT NULL, | ||
is_added bool NOT NULL DEFAULT false, | ||
cart_amount int4 NOT NULL DEFAULT 0, | ||
is_deleted bool NOT NULL DEFAULT false, | ||
alternative int4 NULL, | ||
CONSTRAINT orderitems_pk_1 PRIMARY KEY (id) | ||
); | ||
|
||
|
||
-- public.packerorderitems foreign keys | ||
|
||
ALTER TABLE public.packerorderitems ADD CONSTRAINT packerorderitems_fk FOREIGN KEY (order_id) REFERENCES packerorders(order_id) ON UPDATE CASCADE; | ||
ALTER TABLE public.packerorderitems ADD CONSTRAINT packerorderitems_fk_1 FOREIGN KEY (item_id) REFERENCES item(item_id) ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-- public.packerorders definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE packerorders; | ||
|
||
CREATE TABLE packerorders ( | ||
order_id serial4 NOT NULL, | ||
cart_id int4 NULL, | ||
"date" varchar(100) NOT NULL, | ||
item_amount int4 NOT NULL, | ||
"name" varchar(100) NOT NULL, | ||
note varchar(100) NOT NULL, | ||
phone varchar(100) NOT NULL, | ||
status int4 NOT NULL DEFAULT 0, | ||
account_id int4 NOT NULL, | ||
is_visible bool NOT NULL DEFAULT true, | ||
price float4 NOT NULL, | ||
last_price float4 NOT NULL, | ||
create_date varchar(100) NOT NULL, | ||
update_date varchar(100) NOT NULL, | ||
address varchar(100) NOT NULL, | ||
cold_chain bool NOT NULL, | ||
is_collected bool NOT NULL, | ||
is_prepare bool NOT NULL DEFAULT false, | ||
CONSTRAINT orders_pk_1 PRIMARY KEY (order_id), | ||
CONSTRAINT orders_un_1 UNIQUE (cart_id) | ||
); | ||
|
||
|
||
-- public.packerorders foreign keys | ||
|
||
ALTER TABLE public.packerorders ADD CONSTRAINT packerorders_fk FOREIGN KEY (cart_id) REFERENCES carts(cart_id) ON UPDATE CASCADE; | ||
ALTER TABLE public.packerorders ADD CONSTRAINT packerorders_fk_1 FOREIGN KEY (account_id) REFERENCES account(account_id) ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- public.picker_user definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE picker_user; | ||
|
||
CREATE TABLE picker_user ( | ||
account_id int4 NOT NULL, | ||
picker_active bool NOT NULL DEFAULT true, | ||
open_order int4 NOT NULL DEFAULT 0, | ||
cancel_order int4 NOT NULL DEFAULT 0, | ||
complete_order int4 NOT NULL DEFAULT 0, | ||
picker_id serial4 NOT NULL, | ||
CONSTRAINT picker_user_pk PRIMARY KEY (picker_id), | ||
CONSTRAINT picker_user_un UNIQUE (account_id) | ||
); | ||
|
||
|
||
-- public.picker_user foreign keys | ||
|
||
ALTER TABLE public.picker_user ADD CONSTRAINT picker_user_fk FOREIGN KEY (account_id) REFERENCES account(account_id) ON DELETE CASCADE ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- public.pickerorderitems definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE pickerorderitems; | ||
|
||
CREATE TABLE pickerorderitems ( | ||
id int4 NOT NULL DEFAULT nextval('orderitems_id_seq'::regclass), | ||
order_id int4 NOT NULL, | ||
item_id int4 NOT NULL, | ||
amount int4 NOT NULL, | ||
is_added bool NOT NULL DEFAULT false, | ||
cart_amount int4 NOT NULL DEFAULT 0, | ||
is_deleted bool NOT NULL DEFAULT false, | ||
alternative int4 NULL, | ||
CONSTRAINT orderitems_pk PRIMARY KEY (id) | ||
); | ||
|
||
|
||
-- public.pickerorderitems foreign keys | ||
|
||
ALTER TABLE public.pickerorderitems ADD CONSTRAINT orderitems_fk FOREIGN KEY (order_id) REFERENCES pickerorders(order_id) ON UPDATE CASCADE; | ||
ALTER TABLE public.pickerorderitems ADD CONSTRAINT orderitems_fk_1 FOREIGN KEY (item_id) REFERENCES item(item_id) ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
-- public.pickerorders definition | ||
|
||
-- Drop table | ||
|
||
-- DROP TABLE pickerorders; | ||
|
||
CREATE TABLE pickerorders ( | ||
order_id int4 NOT NULL DEFAULT nextval('orders_order_id_seq'::regclass), | ||
cart_id int4 NULL, | ||
"date" varchar(100) NOT NULL, | ||
item_amount int4 NOT NULL, | ||
"name" varchar(100) NOT NULL, | ||
note varchar(100) NOT NULL, | ||
phone varchar(100) NOT NULL, | ||
status int4 NOT NULL DEFAULT 0, | ||
account_id int4 NOT NULL, | ||
is_visible bool NOT NULL DEFAULT true, | ||
price float4 NOT NULL, | ||
last_price float4 NOT NULL, | ||
create_date varchar(100) NOT NULL, | ||
update_date varchar(100) NOT NULL, | ||
address varchar(100) NOT NULL, | ||
CONSTRAINT orders_pk PRIMARY KEY (order_id), | ||
CONSTRAINT orders_un UNIQUE (cart_id) | ||
); | ||
|
||
|
||
-- public.pickerorders foreign keys | ||
|
||
ALTER TABLE public.pickerorders ADD CONSTRAINT orders_fk FOREIGN KEY (cart_id) REFERENCES carts(cart_id) ON UPDATE CASCADE; | ||
ALTER TABLE public.pickerorders ADD CONSTRAINT orders_fk2 FOREIGN KEY (account_id) REFERENCES account(account_id) ON UPDATE CASCADE; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
|
||
# Firebase – this is necessary if you use Firebase since it could otherwise | ||
# lead to leaking of private certificates to your repository, which is no bueno. | ||
.firebase/ | ||
|
||
# Web related | ||
lib/generated_plugin_registrant.dart | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Android Studio will place build artifacts here | ||
/android/app/debug | ||
/android/app/profile | ||
/android/app/release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: 4d7946a68d26794349189cf21b3f68cc6fe61dcb | ||
channel: stable | ||
|
||
project_type: app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# picker_packer | ||
|
||
A new Flutter project. | ||
|
||
## Getting Started | ||
|
||
FlutterFlow projects are built to run on the Flutter _stable_ release. | ||
|
||
### IMPORTANT: | ||
|
||
For projects with Firestore integration, you must first run the following commands to ensure the project compiles: | ||
|
||
``` | ||
flutter pub get | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
``` | ||
|
||
This command creates the generated files that parse each Record from Firestore into a schema object. | ||
|
||
### Getting started continued: | ||
|
||
This project is a starting point for a Flutter application. | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
|
||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
gradle-wrapper.jar | ||
/.gradle | ||
/captures/ | ||
/gradlew | ||
/gradlew.bat | ||
/local.properties | ||
GeneratedPluginRegistrant.java | ||
|
||
# Remember to never publicly share your keystore. | ||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app | ||
key.properties |
Oops, something went wrong.