This is a working document outlining future plans for a new Coding Train playlist: "Working with Data and APIs in JavaScript."
This course is for aspiring developers who want to learn how to work with data in web applications. How do you retrieve, collect, and store data? The course will be taught through a series of creating three data projects. The first will be client-side only and examine how to load data with fetch()
and present on a web page. Viewers will learn about handling asynchronous events with Promises and how to render data to the DOM as well as draw to HTML5 canvas with p5.js. The second and third project will introduce "full stack" development adding server-side programming with node.js for data persistence and API authentication.
- Course Trailer (~1 minute overview)
- Full introduction -- overview of topics, goals for the course
- What do I need to know to go to tutorial 1.
- What is
fetch()
?- Fetch API
- Promises, async and await
- Body - Web APIs
<img>
DOM element
- Parsing CSV with
split()
- Line chart with chart.js
- load JSON data with
fetch()
and update DOM element. - Add map to page with Leaflet.js and place ISS location as marker.
- Updating location continuously with
setInterval()
.
- Learn
fetch()
for GET requests with Promises andasync
/await
- See loading data from local image / JSON / CSV
- Learn to "render" data with native JS DOM manipulation
- Discover missing pieces: no persistence, API keys not hidden
The Data Selfie App is a project tutorial by @joeyklee.
- What is node, npm, and express? Setting up a server to host static pages.
- Accessing GeoLocation with
navigator.geolocation
. - What is a POST? Sending data to the server.
- What is a database? Saving data to NeDB.
- Retrieving data from NeDB with a "RESTian" route.
- Adding capture and images with p5.
- Next steps / exercise?
- Learn basics of server-side programming with Node (and express?)
- Learn how to save data to a database with NedB.
- show just plain array
- show flat file
- introduce idea of database
- Learn how to use
fetch()
to POST data to server.
The Weather Here is a project tutorial by @joeyklee.
- Learn how to use
fetch()
to grab data from APIs in node.js. - Learn how to store private API keys using environment variables.
- Learn how to deploy your project using services like Glitch and more.