Git Product home page Git Product logo

intro-to-data-apis-js's Introduction

Working with Data and APIs in JavaScript

This is a working document outlining future plans for a new Coding Train playlist: "Working with Data and APIs in JavaScript."

Description

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.

Introduction

  1. Course Trailer (~1 minute overview)
  2. Full introduction -- overview of topics, goals for the course
  3. What do I need to know to go to tutorial 1.

Module 1: fetch() with image, CSV, JSON

1a: fetch()

  1. What is fetch()?

1b: Tabular Data

  1. Parsing CSV with split()
  2. Line chart with chart.js

1c: JSON Data from API

  1. load JSON data with fetch() and update DOM element.
  2. Add map to page with Leaflet.js and place ISS location as marker.
  3. Updating location continuously with setInterval().

Objectives

  1. Learn fetch() for GET requests with Promises and async/await
    • See loading data from local image / JSON / CSV
  2. Learn to "render" data with native JS DOM manipulation
  3. Discover missing pieces: no persistence, API keys not hidden

Module 2: The Data Selfie App

The Data Selfie App is a project tutorial by @joeyklee.

Videos

  1. What is node, npm, and express? Setting up a server to host static pages.
  2. Accessing GeoLocation with navigator.geolocation.
  3. What is a POST? Sending data to the server.
  4. What is a database? Saving data to NeDB.
  5. Retrieving data from NeDB with a "RESTian" route.
  6. Adding capture and images with p5.
  7. Next steps / exercise?

Objectives

  1. Learn basics of server-side programming with Node (and express?)
  2. Learn how to save data to a database with NedB.
    • show just plain array
    • show flat file
    • introduce idea of database
  3. Learn how to use fetch() to POST data to server.

Module 3: The Weather Here

The Weather Here is a project tutorial by @joeyklee.

Objectives

  1. Learn how to use fetch() to grab data from APIs in node.js.
  2. Learn how to store private API keys using environment variables.
  3. Learn how to deploy your project using services like Glitch and more.

intro-to-data-apis-js's People

Contributors

alcadesign avatar blinkityblank avatar gruselhaus avatar shiffman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.