https://github.com/noahgift/flask-hello-coursera
Hello world Flask app for a Coursera Course: Cloud Computing for Data.
https://github.com/noahgift/flask-hello-coursera
cloud cloud-computing-for-data duke flask
Last synced: 3 months ago
JSON representation
Hello world Flask app for a Coursera Course: Cloud Computing for Data.
- Host: GitHub
- URL: https://github.com/noahgift/flask-hello-coursera
- Owner: noahgift
- License: cc0-1.0
- Created: 2021-02-13T20:23:54.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T20:57:30.000Z (over 4 years ago)
- Last Synced: 2025-07-29T00:02:34.814Z (3 months ago)
- Topics: cloud, cloud-computing-for-data, duke, flask
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 8
- Watchers: 2
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-hello-coursera

Run Flask and test it out
* Open a terminal in Visual Studio Code.
* cd into the projects directory: `cd /home/coder/project`
* install virtualenv: `python3 -m pip install virtualenv`
* create a virtualenv: `/home/coder/.local/bin/virtualenv VENV`
* source the virtualenv (activate it): `source VENV/bin/activate`
* cd into the projects directory: `cd /home/coder/project`
* source the virtualenv (activate it): `source VENV/bin/activate`
* cd into flask project: `cd /home/coder/project/flask-project`
* install software: `make install`
* run flask: `python main.py`You should see something similar to this:
```bash
(VENV) coder@81b962f86a39:~/project/flask-project$ python main.py
* Serving Flask app "main" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 325-940-967
```Now open up browser preview and test out the routes. By typing in the following:
http://127.0.0.1:5000/
http://127.0.0.1:5000/echo/helloNotice how the print messages in the flask app display in the running logs.
Try changing the print statements and watch the running application update in real-time.