A Python app without Firebase is like a chicken without a hen-house; if you don’t have a place to store your eggs, it’s time to re-think the farm. This app authenticates users through firebase and also lets users create and check report by firebase database query. Also users are able to upload and save files using firebase storage.
- Python 3.x
- Django 2.1
- pip 3
- Pipenv : to create environment
- Firebase console with a new project
- Open your Firebase Console and Create new project by Selecting Add Project.
- Navigate to Authentication on Dashboard and set SIGN-IN method Email/Password to enable.For first time add a manual user.
- Now, navigate to Project Overview and select Add Firebase to WebApp now, copy config's for later use in Django.
- Now Let's Get started for integrating Firebase with Python Django .
- Download the get-pip.py installer script. If you're on Python 3.2, you'll need this version of get-pip.py instead. ...
- Open the Command Prompt and navigate to the get-pip.py file.
- Run the following command: python get-pip.py.
- Pyrebase is a Python interface to Firebase’s REST API. In layman’s terms, it allows you to use Python to manipulate your Firebase database. The documentation for Pyrebase can be found at Pyrebase
- We will install the Pyrebase and its dependencies using pip : pip3 istall pyrebase
Reports are saved with correct timestamp and date of upload with image upload option:
Reports page:
Detail reports page: