Skip to content

nicholsons/comp0034-wk8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMP0034 Week 8 Coding activities

Set-up

  1. Fork the repository

  2. Clone the forked repository to create a project in your IDE

  3. Create and activate a virtual environment in the project folder e.g.

    • MacOS: python3 -m venv .venv then source .venv/bin/activate
    • Windows: py -m venv .venv then .venv\Scripts\activate
  4. Check pip is the latest versions: pip install --upgrade pip

  5. 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
  6. Install the paralympics app code e.g. pip install -e .

Activity instructions

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.

  1. Dash activities
  2. Flask activities

Running the apps in the src directory

This repository contains 4 apps used in the activities which may cause some confusion for imports.

You must remember to run pip install -e .

The 4 apps can be run from the terminal as follows, you may need to use 'py' or 'python3' instead of 'python' depdending on your computer:

  • Dash app: python src/paralympics_dash/paralympics_dash.py
  • Dash multi-page app: python src/paralympics_dash_multi/paralympics_app.py
  • Flask REST API app (coursework 1): flask --app paralympics_rest run --debug
  • Flask app: flask --app paralympics_flask run --debug

About

COMP0034 2023/24: Week 8 coding activities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors