How to Use This Starter Code
To create your own repository using this code:
- Clone the repository onto your computer using the
git clone
command - Run
git remote remove origin
to disconnect the code from Make-School-Labs - In GitHub.com, create your own repository. IMPORTANT: Do not add a README
- 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 - 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:
- Tenor API Documentation - useful for understanding which URL we want to visit in order to make an API request for GIFs
- BEW 1.1 Lesson on Flask
- BEW 1.1 Lesson on Templates
- BEW 1.1 Lesson on APIs