A trivial Flask application that displays your name when it is added to the URL.
To Run this application, ensure you have installed Python 3 and follow these steps:
- Clone this repository to your development environment.
- Change to the directory (e.g.
cd flasky
) - Create a virtual environment using
python -m venv venv
. In some cases you may need to usepython3 -m venv venv
. - Activate the virtual environment using
source venv/bin/activate
or on Windows use.\venv\Scripts\activate
. - Run
pip install -r requirements.txt
- Once that is finished, start the built-in development server using
flask run
. - Next, open your web browser and go to http://127.0.0.1:5000/ , you should see This is my homepage displayed.
- Now try adding your /hello/(yourname) to the end of the URL, e.g. http://127.0.0.1:5000/hello/Lauren . You should then see Hello Lauren displayed in the heading on the page.
- Explore the code in this repository to learn more about how this was done.