https://github.com/macagua/example.flask.helloworld
Building a Hello World application with Flask
https://github.com/macagua/example.flask.helloworld
flask-application flask-web hello-world python3
Last synced: 1 day ago
JSON representation
Building a Hello World application with Flask
- Host: GitHub
- URL: https://github.com/macagua/example.flask.helloworld
- Owner: macagua
- Created: 2019-07-04T22:12:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T07:23:38.000Z (over 1 year ago)
- Last Synced: 2025-02-21T08:26:52.469Z (over 1 year ago)
- Topics: flask-application, flask-web, hello-world, python3
- Language: Python
- Homepage: https://flask.palletsprojects.com/en/stable/quickstart/
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
========================
example.flask.helloworld
========================
.. image:: https://raw.githubusercontent.com/macagua/example.flask.helloworld/master/docs/_static/flask-vertical.png
:class: image-inline
Building a Hello World application with Flask.
Requirements
============
Please execute the following commands:
::
$ sudo apt install -y python3-dev python3-pip python3-virtualenv
$ sudo apt install -y git
$ git clone https://github.com/macagua/example.flask.helloworld.git flask-helloworld
$ cd ./flask-helloworld
$ virtualenv --python /usr/bin/python3 venv
$ source ./venv/bin/activate
$ pip3 install -U pip
$ pip3 install -r requirements.txt
----
Running
=======
Please execute the following command:
::
$ flask --app hello run
Open at your Web browser the following link http://127.0.0.1:5000/
.. image:: https://raw.githubusercontent.com/macagua/example.flask.helloworld/master/docs/_static/flask-hello-world.png
:class: image-inline
Display a **Hello World** message, like the previous figure.
----
Testing
=======
To run the tests, please execute the following command:
::
$ pytest -v
This way you can check that the application is working correctly.
----
License
========
This project is licensed under the MIT License - see the `LICENSE <./LICENSE>`_ file for details.
----
References
==========
- `Quickstart — Flask documentation `_.
- `Testing Flask Applications — Flask documentation `_.