Code is cool. In this presentation, we share how to build your own Pokédex with the Pokéapi. Fun way to use javascript and learn about APIs. Forge.Autodesk.com
6. We make software for people who make things.
If you’ve ever driven a high-performance car, admired a towering
skyscraper, used a smartphone, or watched a great film, chances are
you’ve experienced what millions of Autodesk customers are doing with our
software.
We believe that anyone can make literally anything they imagine when
equipped with the right tools.
What is Autodesk?
7. Who are you?
● Early Career
Developers
● Students
● Designers
● Tech-curious
13. Data and connectivity
• How do different devices and
applications connect to each other?
• Make a reservation
• Place an order
• Book a flight
APIs!!!!!
14. API Definition
An application program interface (API) is a
set of routines, protocols, and tools for
building software applications. An API
specifies how software components should
interact.
15. TL;DR version
An API is like a waiter who…
● Takes a request
● Tells a system what you want
● Then returns response
26. Back at the Restaurant...
We can request that the
waiter:
● Create an order of french
fries
● Read all the specials
● Update our order to
include berries
● Delete our order (because
diet reasons)
27. Back at the Restaurant...
We can request that the
waiter:
● Create an order of french
fries
● Read all the specials
● Update our order to
include berries
● Delete our order (because
diet reasons)
28. 1. REQUEST: GET Psyduck data!
POKEAPI
2. RESPONSE: Psyduck data from DB!
In our Pokedex...
POKEAPI
29. 1. REQUEST: GET Psyduck data!
POKEAPI
2. RESPONSE: Psyduck data from DB!
In our Pokedex...
POKEAPI
READing data
via HTTP GET
Request!
31. HTTP Definition
The Hypertext Transfer Protocol (HTTP) is an
application-level protocol for distributed, collaborative,
hypermedia information systems. It is a generic, stateless,
protocol which can be used for many tasks beyond its use for
hypertext, such as name servers and distributed object
management systems, through extension of its request
methods, error codes and headers
(https://www.w3.org/Protocols/rfc2616/rfc2616.html)
32. HTTP - TL;DR version
Hypertext transfer protocol.
Rules are for transferring data across the
web
33. 1. REQUEST: GET your web page
POKEAPI
2. RESPONSE:HTML/CSS/JS
HTTP
Google
HTTP GET Request!
38. Check out the Docs!
https://pokeapi.co/docsv2/
● What are the API's
capabilities?
● How are requests formed?
● What is the "shape" of the
response data?
39. CHALLENGE: make a GET request to the Pokeapi!
curl request in your terminal in your browser
https://pokeapi.co/docsv2/
45. JSON Overview
● parameter and value pairs
● colon separates parameter from value
● comma separates each pair
● access properties with dot notation
Ex. pokeObj.id
51. What tools are we using?
● Node/Express
○ How we are running JS in our
application
● Handlebars
○ How we are displaying data in
the view
● PokeAPI
○ The API we will be consuming
55. More Questions? E-mail us!
CONTACT INFO:
lauryn.porte@autodesk.com
hannaha.lee@autodesk.com
56. Resources
APIs
SF OpenData Registered
Business Locations API
(link)
SF OpenData Recreation and
Park Department Info (link)
Google Maps API (link)
Twitter API (link)
Learning
Learn you Node (link)
Nodeschool (link)
Express Tutorial (link)
Handlebars-Express (link)
curl tutorial (link)
57. GLOSSARY
HTTP(HyperText Transfer Protocol:
The rules for transmitting data
across the web
GET request: HTTP verb that tells
the server to look up the data
API(Application Program Interface):
messenger that takes requests and
tells a system what you want to do,
then returns a response back to you
JSON (JavaScript Object Notation)
is a lightweight data-interchange
format
Node: Server-side solution for
running JavaScript
Express: Framework for Node
Handlebars: Front end templating
engine