You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4.6 KiB

Unit Lab: Flask!


Lesson Objectives

  • Apply what youve learned in the Flask unit to create a working Python program.
  • Wrap up the Flask unit.
  • Q&A and transition.

You Do: Unit Lab - Flask

You already have an app that prompts a user for a movie and then, looking up that movie in the OMDB API, either prints search results or finds the Rotten Tomatoes rating.

Using what you've already built as a base, now you'll create a web app where a user can enter a movie to search for, see the results, and see the details. Open the lab instructions in unit-lab-5-directions. Follow the instructions there.

  • If your solution to the last lab didn't quite work, there's working code provided in the {starter-code} folder. Copy that to your local folder and work from there.

Try your best! Raise your hand if you really need help.

--

Debrief: Unit Lab - Flask

How did it go?

Let's go over it.

Make sure you understand and your code works.


Unit Wrap Up

What can you do?

  • Basic web development:
    • Explain what front-end and back-end means.
    • Write basic HTML.
    • Write basic CSS.
  • Flask:
    • Write a basic Flask application.
    • Style a Flask app.
    • Display variables on a webpage.
    • Create a route in Flask.
    • Pass variables to a template HTML document via a Flask app.
    • Create an API that makes a GET and POST request with Flask.

Questions?