Food Delivery is a sample project, you can fork and customize to make your awesome application. This repo contains all source code and config files to make your app. This application using flaskApi.
To make your application, you must prepare :
- Backend server using flaskApi.
- Firebase project with authentication and realtime database ready.
First, you need to clone flaskApi to your server. You can install Flask and run it by following step (using Ubuntu):
- Install python3 and python3-venv packages
$ apt install python3 python3-venv
- Go to flaskApi folder
$ cd flaskApi
- Start using virtual environment
$ source venv/Scripts/activate
- Launch server (you can append --host=0.0.0.0 to below command to make server publicly)
$ flask run
Then you add google-services.json configuration file to app folder
This is a sample rule you can use to make private your database
{
"rules": {
"conversations": {
".read": true,
".write": true
},
"users": {
"$uid": {
".read": "auth != null",
".write": "auth != null"
},
"7HCgAB8qWLeF0fG4M8rTzVn3Isg1": {
".read": true,
".write": true
}
}
}
}