https://github.com/timtech4u/flask-firestore
Building a Flask(Python) CRUD API with Firestore(Firebase) and Deploying on Cloud Run.
https://github.com/timtech4u/flask-firestore
Last synced: about 1 year ago
JSON representation
Building a Flask(Python) CRUD API with Firestore(Firebase) and Deploying on Cloud Run.
- Host: GitHub
- URL: https://github.com/timtech4u/flask-firestore
- Owner: Timtech4u
- Created: 2019-08-28T23:59:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T17:00:31.000Z (over 5 years ago)
- Last Synced: 2025-04-05T20:34:03.186Z (over 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 20
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://deploy.cloud.run)
# flask-firestore
Building a Flask(Python) CRUD API with Firestore(Firebase) and Deploying on Cloud Run.
## Endpoints
- `/add` - Create new document | POST
- `/list` - List all documents | GET
- `/update?id=ID_GOES_HERE` - Update a document | POST
- `/delete?id=ID_GOES_HERE` - Delete a document | DELETE
> Pass `?document_id=mydoc` to use a custom document
> Pass `?collection=appointment` to use a custom collection.
> Pass `?sub_collection=property` to use a custom sub_collection.
## Running Application
```
FLASK_APP=main.py FLASK_ENV=development flask run --port 8080
or
python3 main.py
```