How to Use This Starter Code

To create your own repository using this code:

  1. Clone the repository onto your computer using the git clone command
  2. Run git remote remove origin to disconnect the code from Make-School-Labs
  3. In GitHub.com, create your own repository. IMPORTANT: Do not add a README
  4. Run git remote add origin git@github.com:YOUR_USERNAME/YOUR_REPO_NAME.git, replacing YOUR_USERNAME with your username and YOUR_REPO_NAME with your repository name
  5. Now you should be able to add, commit, and push as normal!

How to Run This Starter Code

You may need to install flask and/or requests. To do so, run:

pip3 install flask
pip3 install requests

To run, open the folder containing app.py in a Terminal instance, and run:

export FLASK_ENV=development
flask run

Resources

You may find the following resources helpful in your development process:

  1. Tenor API Documentation - useful for understanding which URL we want to visit in order to make an API request for GIFs
  2. BEW 1.1 Lesson on Flask
  3. BEW 1.1 Lesson on Templates
  4. BEW 1.1 Lesson on APIs