Skip to content

Commit 54dc172

Browse files
committed
First init
1 parent 70d90e3 commit 54dc172

File tree

190 files changed

+20415
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+20415
-0
lines changed

.gitignore

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
73+
# pyenv
74+
.python-version
75+
76+
# celery beat schedule file
77+
celerybeat-schedule
78+
79+
# SageMath parsed files
80+
*.sage.py
81+
82+
# dotenv
83+
.env
84+
85+
# virtualenv
86+
.venv
87+
venv/
88+
ENV/
89+
.vscode
90+
# Spyder project settings
91+
.spyderproject
92+
.spyproject
93+
94+
# Rope project settings
95+
.ropeproject
96+
97+
# mkdocs documentation
98+
/site
99+
100+
# mypy
101+
.mypy_cache/
102+
103+
.DS_Store
104+
*.sqlite3
105+
media/
106+
*.pyc
107+
*.db
108+
*.pid
109+
110+
# Ignore Django Migrations in Development if you are working on team
111+
112+
# Only for Development only
113+
**/migrations/**
114+
!**/migrations
115+
!**/migrations/__init__.py

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Ecommerce Shopping App
2+
3+
This is a shopping app made with flutter, the backend is made with django
4+
5+
App | Invoice created from the admin panel | Admin panel
6+
:-------------------------:|:-------------------------:|:-------------------------:
7+
![App](./screenshots/app.gif) | ![App](./screenshots/Screenshot_1.jpg)| ![App](./screenshots/Screenshot_2.jpg)
8+
9+
## Requirements
10+
- [Twilio](https://www.twilio.com/)
11+
- [Google maps Key](https://developers.google.com/maps/documentation/javascript/get-api-key)
12+
- Email account
13+
14+
## Setup
15+
16+
Rename [settings/.env.template](settings/.env.template) to `.env` and fill the following parameters :
17+
- EMAIL_HOST_USER
18+
- EMAIL_HOST_PASSWORD
19+
- TWILIO_ACCOUNT_SID
20+
- TWILIO_AUTH_TOKEN
21+
- TWILIO_FROM_PHONE
22+
- GOOGLE_MAPS_KEY
23+
24+
Run the following commands :
25+
```bash
26+
pip install -r requirements.txt
27+
```
28+
29+
```bash
30+
python manage.py makemigrations
31+
```
32+
33+
```bash
34+
python manage.py migrate
35+
```
36+
37+
To run the server, execute the following command :
38+
```bash
39+
python manage.py runserver
40+
```
41+
42+
To run the app, execute the following commands :
43+
```bash
44+
flutter pub get
45+
flutter run
46+
```
47+
48+
## License
49+
[MIT](https://choosealicense.com/licenses/mit/)

app/.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
**/ios/Flutter/.last_build_id
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
.packages
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Web related
35+
lib/generated_plugin_registrant.dart
36+
37+
# Symbolication related
38+
app.*.symbols
39+
40+
# Obfuscation related
41+
app.*.map.json

app/.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 92eb7945a5098baa748e877e042c560486406721
8+
channel: master
9+
10+
project_type: app

app/android/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties

app/android/app/build.gradle

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
28+
/* def keystorePropertiesFile = rootProject.file("key.properties")
29+
def keystoreProperties = new Properties()
30+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) */
31+
32+
android {
33+
compileSdkVersion 29
34+
35+
sourceSets {
36+
main.java.srcDirs += 'src/main/kotlin'
37+
}
38+
39+
lintOptions {
40+
disable 'InvalidPackage'
41+
}
42+
43+
defaultConfig {
44+
applicationId "com.ecom.commerce.ecom"
45+
minSdkVersion 21
46+
targetSdkVersion 29
47+
versionCode flutterVersionCode.toInteger()
48+
versionName flutterVersionName
49+
multiDexEnabled true
50+
}
51+
52+
signingConfigs {
53+
release {
54+
55+
}
56+
}
57+
58+
buildTypes {
59+
release {
60+
// Signing with the debug keys for now, so `flutter run --release` works.
61+
signingConfig signingConfigs.release
62+
}
63+
}
64+
}
65+
66+
flutter {
67+
source '../..'
68+
}
69+
70+
dependencies {
71+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
72+
implementation 'com.android.support:multidex:1.0.3'
73+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.ecom.commerce.ecom">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.ecom.commerce.ecom">
3+
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
4+
calls FlutterMain.startInitialization(this); in its onCreate method.
5+
In most cases you can leave this as-is, but you if you want to provide
6+
additional functionality it is fine to subclass or reimplement
7+
FlutterApplication and put your custom class here. -->
8+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
9+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
10+
<uses-permission android:name="android.permission.INTERNET" />
11+
<application
12+
android:name="io.flutter.app.FlutterApplication"
13+
android:label="ecom"
14+
android:icon="@mipmap/launcher_icon"
15+
android:usesCleartextTraffic="true"
16+
android:requestLegacyExternalStorage="true">
17+
<meta-data android:name="io.flutter.network-policy" android:resource="@xml/network_security_config"/>
18+
<activity
19+
android:name=".MainActivity"
20+
android:launchMode="singleTop"
21+
android:theme="@style/LaunchTheme"
22+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
23+
android:hardwareAccelerated="true"
24+
android:windowSoftInputMode="adjustResize">
25+
<!-- Specifies an Android theme to apply to this Activity as soon as
26+
the Android process has started. This theme is visible to the user
27+
while the Flutter UI initializes. After that, this theme continues
28+
to determine the Window background behind the Flutter UI. -->
29+
<meta-data
30+
android:name="io.flutter.embedding.android.NormalTheme"
31+
android:resource="@style/NormalTheme"
32+
/>
33+
<!-- Displays an Android View that continues showing the launch screen
34+
Drawable until Flutter paints its first frame, then this splash
35+
screen fades out. A splash screen is useful to avoid any visual
36+
gap between the end of Android's launch screen and the painting of
37+
Flutter's first frame. -->
38+
<meta-data
39+
android:name="io.flutter.embedding.android.SplashScreenDrawable"
40+
android:resource="@drawable/launch_background"
41+
/>
42+
<intent-filter>
43+
<action android:name="android.intent.action.MAIN"/>
44+
<category android:name="android.intent.category.LAUNCHER"/>
45+
</intent-filter>
46+
</activity>
47+
<!-- Don't delete the meta-data below.
48+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
49+
<meta-data
50+
android:name="flutterEmbedding"
51+
android:value="2" />
52+
</application>
53+
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.ecom.commerce.ecom
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="@android:color/white" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>

0 commit comments

Comments
 (0)