NB: The apps are now in a directory called 'src'. Remember to do the pip install -e .
step below.
-
Fork the repository https://github.com/nicholsons/comp0034-wk6
-
Clone the forked repository to create a project in your IDE
-
Create and activate a virtual environment in the project folder e.g.
- MacOS:
python3 -m venv .venv
thensource .venv/bin/activate
- Windows:
py -m venv .venv
then.venv\Scripts\activate
- MacOS:
-
Check
pip
is the latest versions:pip install --upgrade pip
-
Install the requirements. You may wish to edit requirements.txt first to remove the packages for Flask or Dash if you only want to complete the activities for one type of app.
- e.g.
pip install -r requirements.txt
- e.g.
-
Install the paralympics code e.g.
pip install -e .
The activities introduce HTML and CSS in the specific contexts of Dash and Flask. That is, you will learn just enough HTML and CSS to get you started with the application frameworks.
There are two versions of the activities. You can complete both, or just the version for the framework you intend to use for coursework 2. Dash is for dashboard apps (apps that mostly contain charts); Flask is for any other app e.g. pages that include a feature that uses a machine learning model or pages that work with the data in some other way.
If you want to learn a little HTML, CSS and JavaScript independently of the application framework then the activities folder includes optional activities: html intro, css intro, responsive design intro, and js intro.