https://github.com/bertiewooster/sampler-flask-backup
Backup for sampler-flask: Uses submodule, works locally, couldn't push to Heroku
https://github.com/bertiewooster/sampler-flask-backup
Last synced: 6 months ago
JSON representation
Backup for sampler-flask: Uses submodule, works locally, couldn't push to Heroku
- Host: GitHub
- URL: https://github.com/bertiewooster/sampler-flask-backup
- Owner: bertiewooster
- Created: 2021-07-12T23:25:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-13T00:35:28.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T11:47:59.923Z (over 1 year ago)
- Language: Rich Text Format
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flaskftp
# Upload and download files
## Instructions:
1. Clone this repo to a local folder, for example flaskftp
2. In your shell, change directory to that folder, for example cd flaskftp
3. If desired, create a virtual environment using
3.1. $ python3 -m venv venv
3.2. $ . venv/bin/activate
4. $ pip install -r requirements.txt
5. $ export FLASK_APP=__init__
6. $ flask run
7. Point your web browser to the URL in your shell followed by /uploadfile, typically 127.0.0.1:5000/uploadfile
8. Upload a file; it should appear in the uploads subfolder, for example flaskftp/uploads
9. Download that file; it should be downloaded, and probably be opened by your web browser in an appropriate application