- Git
- Python 3 (with pip installed)
- Flutter sdk (for app development)
- Android studio (android sdk) (for app development)
- Open the terminal in desired directory.
- clone this git repository with the command
git clone https://github.com/samirlure161/community_engineers_v1.2.git
open backend folder in terminal and then follow these steps:
- create a virtual environment
python -m venv .venv
- if you are in windows, you have to set execution policy to unrestricted.
set-ExecutionPolicy Unrestricted -Scope Process
- After this, activate virtual environment
- windows :
.\.venv\Scripts\activate.ps1
- others :
.\.venv\Scripts\activate.sh
- windows :
- Use this command to install all the required package
pip install -r requirements.txt
- Set enviroment variable of name
GOOGLE_APPLICATION_CREDENTIALS
with the path of the firebase admin config file (JSON) of our project. - now Run this command to run backend server
python main.py
- Move to the Required app folder
- For Bloodbanks :
cd .\app\bloodbank\
- For Clients :
cd .\app\donateplus\
Place the firebase auth config file of the client app project in<projectlocation>\app\android\app
- For Bloodbanks :
- Get required packages
flutter pub get
- Run in debug mode:
flutter run
For more Details on Flutter builds and more refer to: Flutter's official Documentation
please do not write this symbol (<>) while using commands. directly enter the value.
eg. git branch samir/feature/app/donateplusclient
- clone a repo:
git clone <https-url-of-repo>
- initialize git for a project:
git init
- create new branch:
git branch <branchname>
- adding all files:
git add -A
- commiting changes:
git commit -am "<comment here>"
- adding origin:
git remote add origin <https-url-of-repo>
- merging branches:
git merge <where> <which-branch>
- switch to branch:
git checkout <branchname>
- Pushing branch to github:
git push -u origin <branch-name>
Note: Please do not push to main branch. - deleting local branch:
git branch -D <branch-name>
- Pulling:
git pull origin <branch-name>
- fetching:
git fetch origin <branch-name>
-
Firebase Config Files Please ask for the project leader for this file. And donot share this file with anyone cause it is extremely dangerous for security of the app. and donot upload it either in github or any other platform.
-
Database Browser (Sqlite Browser) Click here to download the Database browser.
In this project we will be using python , sql and dart. Thus please refer to the following docs/videos for learning.
- Python: python.org
- Python Packages: pypi.org
- Flask: Documentation
- Flutter: flutter.dev
- Flutter packages: pub.dev