Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulgoetze/flask-gcs-upload-example-app
The example app for the "File Upload to Google Cloud Storage with Flask" post series: https://medium.com/p/7a4e379911d7?source=friends_link&sk=dd460418de3d1829c056db5c069f9b6d
https://github.com/paulgoetze/flask-gcs-upload-example-app
blog file-upload flask google-cloud-storage post-series python python3
Last synced: 18 days ago
JSON representation
The example app for the "File Upload to Google Cloud Storage with Flask" post series: https://medium.com/p/7a4e379911d7?source=friends_link&sk=dd460418de3d1829c056db5c069f9b6d
- Host: GitHub
- URL: https://github.com/paulgoetze/flask-gcs-upload-example-app
- Owner: paulgoetze
- Created: 2019-05-03T16:55:08.000Z (over 5 years ago)
- Default Branch: part-1
- Last Pushed: 2023-06-22T16:57:02.000Z (over 1 year ago)
- Last Synced: 2023-08-11T22:49:01.219Z (about 1 year ago)
- Topics: blog, file-upload, flask, google-cloud-storage, post-series, python, python3
- Language: Python
- Homepage:
- Size: 223 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# "Uploading files to Google Cloud Storage using a Flask API" – Example App
This is the example app for our 3-part post series on Medium:
* [Part 1](https://medium.com/p/7a4e379911d7?source=friends_link&sk=dd460418de3d1829c056db5c069f9b6d): basic app setup, configuring testing & production filedepots (see [part-1](https://github.com/paulgoetze/flask-gcs-upload-example-app/tree/part-1) branch)
* [Part 2](https://medium.com/p/6b203a0e392c?source=friends_link&sk=e7274af2488285dd51756d81de9cf671): testing and implementing the User model & file upload endpoint (see [part-2](https://github.com/paulgoetze/flask-gcs-upload-example-app/tree/part-2) branch)
* [Part 3](https://medium.com/p/897c302916e7?source=friends_link&sk=e9fca9639697051be296c140932884e0): customising the upload & allowing multiple depots (see [part-3](https://github.com/paulgoetze/flask-gcs-upload-example-app/tree/part-3) branch)## Running the App
In order to run the Flask app:
* make sure you have Python v3.10+ and [pipenv](https://pipenv.pypa.io/en/latest/install/#installing-pipenv) installed
* run `pipenv install` to install the dependencies
* run `pipenv shell` to activate the projects virtualenv
* copy `my_app/config/app_config.py.sample` to `my_app/config/app_config.py` and adjust the config variables to your needs
* run `FLASK_APP=my_app flask db upgrade` to init the configured database
* run `FLASK_APP=my_app flask run` to start the local server
* run `pytest` to run the test suite