This is the individual component of the Flask iteration of your team’s project. For this component, you need to write a basic Flask app with one potential route. Much of this code won’t end up in your team’s repository because it will be duplicate. Instead, the goal is to get you to practice and start thinking about the Flask app individually.
You should work individually on this component. You shouldn’t coordinate with your team, since the goal is that you get practice individually, and so it’s fine if there is some duplication. You can get conceptual help from your team and others, however what you submit must be all your own work.
The individual deliverable for this iteration is due Friday April 22nd at 10pm on your individual GitHub.
You should write a basic Flask app with at least one route. Your Flask app should import the files from your group’s command-line interface app and use those functions to provide some of the data from your dataset on a web page. The home page of your app should provide instructions for what URL to go to to see the data you choose. To get ‘exceeds expectations’ that route should use a route parameter and you should have a couple of tests in another file for your Flask-specific functions.
Specifically, the grader will:
- Pull down your group’s files that are tagged ‘cl’
- Pull down your submission for this deliverable that should be tagged ‘flask’
- Place your Flask app file in the same directory as your group’s code
- Run your Flask app file
- Based on the information on your homepage, type in a URL to see the data
- Examine your code for style and requirements
Turning it in
You should submit the file with your individual Flake app to your individual deliverables repository with the tag
flask by typing the following:
git tag -a flask -m "basic flask app" git push origin flask
The criteria for “Meets Expectations” and “Exceeds Expectations” are below.
Meets Expectations Criteria
- The Flask app works with the team’s core command line code
- There is a homepage with instructions
- There is at least one route that uses the team’s code to display data from the dataset
Exceeds Expectations Criteria
- All the Meets Expectations criteria are met
- Route uses a parameter to change what data is displayed
- There is a reasonable automated test suite for the Flask-specific functions including tests for the routes
- The Flask app code is very clear, potentially using helper functions to ensure that Flask-specific functions are at a single layer of abstraction
- There is barely any duplicated code
- The docstrings are particularly clear