First clone this repository to your laptop:
cd ~/code/YOUR_GITHUB_USERNAME
git clone git@github.com:lewagon/http-and-api-boilerplate.git http-and-api-lecture-boilerplate
cd http-and-api-lecture-boilerplate
rm -rf .git
code . # Open this folder in your text editor
https://www.boredapi.com/api/activity/
http://www.boredapi.com/documentation#endpoints-random
- Click the button
- Fetch an activity using fetch
- Insert the activity into the DOM
Launch your local webserver with:
serve
Open localhost:8000
in your browser.