simonprickett / fundamental-js-meetup-fetch-exercise

Fetch API Exercise from San Diego JS Fundamental JS Meetup April 25 2018.

Home Page:https://simonprickett.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetch API Demo for San Diego JS Exercise

demo

Overview

Demo that I put together with Grant as part of the coding exercises for San Diego JS "Fundamental JS" meetup on April 25th 2018.

The aim was to use the Fetch API to get data from a remote source and display it on a page.

This demo uses the excellent randomuser.me API to get random person data, and displays some of it using a flexbox layout.

Additionally it uses CSS and icons from flag-icon-css to show the national flag of each user returned.

Demo

Try it out on GitHub Pages.

Running Locally

Clone this repo, then cd to it and serve it using a static web server.

With Python

python -m SimpleHTTPServer

Then visit http://localhost:8000.

With Node.js

npm install -g node-static

cd to wherever you cloned the repo to, then:

static .

Then visit http://localhost:8080.

About

Fetch API Exercise from San Diego JS Fundamental JS Meetup April 25 2018.

https://simonprickett.dev/

License:MIT License


Languages

Language:HTML 85.4%Language:CSS 14.6%