• Stars
    star
    745
  • Rank 60,881 (Top 2 %)
  • Language
    HTML
  • License
    MIT License
  • Created almost 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Working with Data and APIs in JavaScript

Working with Data and APIs in JavaScript

This document is an outline for the 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 a 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 the 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 the idea of the database
  3. Learn how to use fetch() to POST data to the 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.

More Repositories

1

website-archive

Archive of the Coding Train website (first version)
JavaScript
5,723
star
2

Machine-Learning

Examples and experiments around ML for upcoming Coding Train videos
949
star
3

Suggestion-Box

A repo to track ideas for topics
571
star
4

Toy-Neural-Network-JS

Neural Network JavaScript library for Coding Train tutorials
JavaScript
425
star
5

Rainbow-Poem

This is a repo for my poem.
HTML
220
star
6

thecodingtrain.com

All aboard the Coding Train! Choo choo! 🚂🌈❤️
JavaScript
208
star
7

Code-of-Conduct

This is a Code of Conduct for the Coding Train community.
179
star
8

Wave-Function-Collapse

JavaScript
147
star
9

Coding-Challenges

Let's put any example code that is not p5 web editor in this repo to link from new website.
JavaScript
137
star
10

QuadTree

A QuadTree Example for JavaScript (with p5.js)
JavaScript
128
star
11

AStar

AStar example with community contributions
JavaScript
115
star
12

NeuroEvolution-Vehicles

Raw code from Live Stream May 13 2019
JavaScript
103
star
13

Flappy-Bird-Clone

The Coding Train's Flappy Bird Clone
JavaScript
87
star
14

StarPatterns

Islamic Star Patterns Code from http://www.cgl.uwaterloo.ca/csk/projects/starpatterns/
JavaScript
65
star
15

OpenSimplexNoise-for-Processing

A Processing library for open simplex noise
Java
51
star
16

Logo

Repo for implementation of Logo in JavaScript p5
JavaScript
48
star
17

Asteroids

Asteroids code for Challenge 46
JavaScript
48
star
18

Creative-Coding-Processing-Full-Course

Full Course: Creative Coding with Processing 4!
Processing
45
star
19

Directional-Boring

Horizontal Directional Drilling Simulation
JavaScript
44
star
20

ColorClassifer-TensorFlow.js

Community version of TensorFlow.js Color Classifier
JavaScript
44
star
21

Nebula-AppleSoft-Basic

AppleSoft Basic source code for Nebula class "What is Code?"
38
star
22

Discord-Bot-Choo-Choo

Coding Train Example Discord Bot
JavaScript
36
star
23

p5-matter

Examples combing p5.js and matter.js
JavaScript
36
star
24

CommunityClouds

Cloud Designs for Processing Community Day
JavaScript
35
star
25

Eyeo-Festival-2019

Code and documentation for my Eyeo Festival talk 2019
Python
29
star
26

Live-Poll

JavaScript
28
star
27

CrowdSourceColorData

For crowd sourcing color data for a machine learning classification example
JavaScript
28
star
28

The-Weather-Here

Based on Joey Lee's project The Weather Here
JavaScript
28
star
29

FractalFlame

Exploring Fractal Flame algorithm
Processing
27
star
30

12oclocks

p5.js port of John Maeda's 12 o'clocks
JavaScript
26
star
31

Oregon-Trail

A p5.js version of the Apple ][ Oregon Trail Game
JavaScript
26
star
32

Rainbow-README

A rainbow README, full of hearts and more! 🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖🌈💖
26
star
33

Mastodon-Bot

Bot code for coding train
JavaScript
24
star
34

asteroids-advanced

JavaScript
24
star
35

Genuary-2023

All code from Genuary 2023 Speed Run
Processing
20
star
36

Discord-Bot-Examples

Bot Examples for Fall 2023
JavaScript
20
star
37

EveryDayCodingTrain

Code for Simone Giertz's Every Day Calendar experiments
C++
19
star
38

Robot-Controllers

JavaScript
19
star
39

Infinite-Rainbows

p5.js port of Marius Watz's "infinite rainbows" for POKE London
JavaScript
18
star
40

Pi-in-the-Sky

JavaScript
18
star
41

Processing-Catalog-Contribution

Coding Train Processing Community Catalog Contribution
Processing
17
star
42

Monty-Hall

Monty Hall Problem Demonstration!
JavaScript
17
star
43

Computer-MouseGAN

Processing and node.js project for rendering MouseGAN images from RunwayML
Java
17
star
44

BrickBreaker

Code Repository for Yining Shi's Guest Tutorial
JavaScript
17
star
45

Pi-Day-2018

In progress
Processing
16
star
46

500k-Subscriber-Map

Community version of Coding Challenge 109: 500k Subscriber Visualization
JavaScript
16
star
47

TestingTestTest

All about testing with tests. Also tests.
JavaScript
15
star
48

Pi-Day-2019

Happy Pi Day!
Processing
15
star
49

2017

Happy 2017 from [Redacted] Rainbow
JavaScript
15
star
50

Holiday-Songs

Repo for Holiday Themed Coding Song suggestions
15
star
51

WorleyNoise

Repo for Code from Worley Noise live stream
Processing
15
star
52

Happy-2019

Happy New Year from The Coding Train
JavaScript
15
star
53

ChooChooTweets

Node module for working with Twitter API
JavaScript
14
star
54

MarchingSquares

Prepping Code Examples and Variations for Marching Squares video
Java
13
star
55

LateNight

Repo to Keep Track of Code and things I'm doing . . .late at night. . . .
JavaScript
13
star
56

Happy-New-Year-2022

Code from today's Live Stream
Roff
12
star
57

Frogger

Community Frogger in p5.js
JavaScript
12
star
58

Bizarro-Devin

JavaScript
12
star
59

GenuaryDay4-Fidenza-Base

Base Code for Fidenza Genuary Day 4
Java
12
star
60

teamtrees

Code from #TeamTrees Live Stream
JavaScript
11
star
61

GUMP500-bot

JavaScript
10
star
62

Computer-Mouse-Training

A machine learning model that predicts mouse movements.
JavaScript
10
star
63

Auto-Encoder-Demo

Code from Live Stream (started 11/15/21)
JavaScript
10
star
64

Rainbow-Closed-Captions

Captions for my YouTube videos.
10
star
65

d3-p5-fdg

JavaScript
10
star
66

Rainbow-Song

A song about rainbows
9
star
67

Genuary-Day18-VHS

JavaScript
9
star
68

sockets-and-p5

JavaScript
9
star
69

Wordle-Simulation

A Wordle Simulation to test out ideas in p5.js
JavaScript
9
star
70

MewChooWorld

Processing
9
star
71

p5-gemini

JavaScript
9
star
72

Express-Stops

The Express Train is pulling in the station!
8
star
73

GUMP500-api

Tracking Forrest Gump 500 Miles
JavaScript
8
star
74

trainbot

Main discord bot for the coding train discord server
JavaScript
8
star
75

Sorting-Viz

Adding QuickSort (need help!)
Processing
7
star
76

YouTube-API-Experiments

Working on some experiments with YouTube API
JavaScript
6
star
77

Mouse-Live-Stream-04-30

JavaScript
6
star
78

Coding-in-the-Cabana

Source code for Coding in the Cabana Episodes
Java
6
star
79

Random-Whistle

This is a simple website that generates a random walk visualization to complement custom train whistles.
HTML
6
star
80

node-p5-test

JavaScript
6
star
81

Computer-Mouse-Bot

A Bot for the Computer Mouse Conference
JavaScript
6
star
82

Random-Spell-Demo

A Python script to generate a random band
Python
6
star
83

Genuary-25-Racer-1979

Genuary Day 25 Racer - (1979) - Apple II
JavaScript
5
star
84

project-trainsite-api

The API powering The Coding Train's website! 🚂
JavaScript
5
star
85

Rainbow-Dance

5
star
86

PoemWebsite

This poem will be on the world wide web!
HTML
5
star
87

project-trainsite-frontend

React frontend for Project Trainsite
TypeScript
4
star
88

The-Coding-Train-API

API for all things on The Coding Train (thecodingtrain.com)
JavaScript
4
star
89

Auld-Lang-Syne-Train

Coding Train / Processing / p5 themed lyrics for Auld Land Syne
4
star
90

Contribution-Wheel

JavaScript
3
star
91

Replicate-p5js-stream

Demonstrating Streaming the replies from the model
JavaScript
3
star
92

Debug-ml5-pixel-regression

I'm stuck!
JavaScript
2
star
93

node-project-demo

Demo for setting up a node.js project
JavaScript
2
star
94

Coding-Train-Logo

Processing
2
star
95

Computer-Mouse-Data

Code examples for Computer Mouse Tracking and Visualization of Mouse Data
Processing
2
star
96

project-trainsite

The future version of The Coding Train's website! 🚂
1
star
97

voice-dataset-prep

node.js code to prepare dataset for training voice model (piper tts)
JavaScript
1
star
98

coding-train-transcripts

A project to collect transcripts from Coding Train videos
JavaScript
1
star
99

Logo-Animations

Speculative Animations for Coding Train Logo
JavaScript
1
star
100

Embeddings-Live

JavaScript
1
star