This is an example of a web application using Firebase Firestore and Authentication alongside Django.
- Python 3.8 (
python-venv
andpython-pip
) - Django 3.1.7
- firebase_admin 2.13
- python-dotenv 0.15
- Clone this repository and create a virtual-env in the same directory
git clone https://github.com/thalescr/django-docx-import.git
cd django-docx-import
python3 -m venv venv
- Activate your virtual-env:
Windows:
venv\Scripts\activate
Linux:
source venv/bin/activate
- Install required Python modules
pip3 install -r requirements.txt
- Create a file called
.env
in project's root directory:
SECRET_KEY=project_secret_key_here
GOOGLE_APPLICATION_CREDENTIALS=/path/to/firebase/credentials.json
FIREBASE_CONFIG={ "storageBucket" : "firebase-bucket-link.appspot.com" }
FIREBASE_WEB_API_KEY=firebase_web_api_key_here
- Finally run your server
python3 manage.py runserver