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.
Clone this repo, then cd to it and serve it using a static web server.
python -m SimpleHTTPServer
Then visit http://localhost:8000
.
npm install -g node-static
cd to wherever you cloned the repo to, then:
static .
Then visit http://localhost:8080
.