-
Flutter sdk should be installed. (Version >=2.8.x)
-
Python should be installed. (Version >=3.9.x)
-
Pip should be installed. (Version >=21.1.x)
-
Virtual Environment Wrapper should be installed. (Version >=4.8.x)
Download | Virtual Environment Wrapper (pypi.org)
Setup: Virtual Environment -
An IDE (e.g VSCode, Atom etc)
- Extract the downloaded starterKit.zip folder.
- Open the starterKit folder and rename it to your requirement.
- Now open the folder and switch to the djangoBackend named folder.
- Create a virtual environment to install all the dependencies by providing command
virtualenv virtualenv_name
(in place of virtualenv_name, provide your preferred name). - Switch to the virtual environment by providing the command
.\virtualenv_name\Scripts\activate.ps1
. - Run the command
pip install -r requirements.txt
. - After all the dependencies are installed, run the command
python manage.py runserver
. - This will run the local django server and you will be able to use it with Flutter.
- To access the admin panel on route
http://localhost:8000/admin
, the default username and password isadmin
. - Now, navigate to the flutterapp named folder and then run the command
flutter pub get
. - Start your emulator or simulator to run the flutter application in your preferred device.
- Inside the lib folder of flutter project structure, select service_class file and set your localhost url according to the device.
- Move to the main.dart file in the lib folder of the flutterapp project structure and then hit command
flutter run lib\main.dart
.