"Run the App" Exercise
Prerequisites
Learning Objectives
In this exercise, we'll learn how to install, configure, and run an existing Python application. We'll focus on environment management, package management, and setting environment variables.
Instructions
Visit the Professor's "My First Python App" repository, which contains a simple command-line application. We'll refer to the Professor's repository as the "upstream repository".
Click "Fork" to copy the repo under your own control. We'll refer to your forked copy as the "remote fork".
Follow the instructions in the repository's "README.md" file to install, setup and run the Python code contained inside:
Use your Git client to "clone" (download) the remote fork onto your local machine, perhaps onto the Desktop. We'll refer to this as the "local repository".
Use the command-line to navigate into the local repository.
Use the
conda
utility to create a new virtual environment with the latest version of Python, then activate it.Use the
pip
utility to install any required third-party packages specified in the repo's "requirements.txt" file.Use a ".env" file approach to set an environment variable to customize the user name.
Use the
python
utility to run the Python file(s).
Success Criteria
Once you have run the app, you will have succeeded. Repeat steps 3.5 and 3.6 (change the environment variable value and re-run the program) at least one more time for good measure.
Last updated