Skip to content

Conversation

@covrebo
Copy link
Contributor

@covrebo covrebo commented Feb 13, 2021

ATTENTION: before clicking "Create Pull Request" please submit some meta data, thanks!

Difficulty level (1-10): [8]
Estimated time spent (hours): [6]
Completed (yes/no): [yes]
I stretched my coding skills (if yes what did you learn?): [Yes, I had not worked with JSON or API's before so it was all new to me.]
Other feedback (what can we improve?): [This is a great challenge with lots of freedom to express creativity!]

Copy link
Collaborator

@bbelderbos bbelderbos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice little web app

@app.route('/')
def hello_world():
# get dad joke
joke = services.get_dad_joke()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice you added a service layer.

@@ -0,0 +1,2 @@
# CanHazDadJoke
A single page [flask](https://flask.palletsprojects.com/en/1.1.x/) app that presents a button to press for a dad joke. A dad joke is received from the [icanhazdadjoke](https://icanhazdadjoke.com/) API as `json`. The `json` is then parsed and presented in a modal to the user. Page is styled using [Bootstrap](https://getbootstrap.com/) v5.0. A more detailed description of the project can be found [here](https://covrebo.com/retrieving-json-with-flask.html). No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool idea, didn't know about that API

@bbelderbos bbelderbos merged commit f8ea2e0 into pybites:community Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants