https://github.com/emmvs/httparty_1401
https://github.com/emmvs/httparty_1401
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/emmvs/httparty_1401
- Owner: emmvs
- Created: 2023-11-05T12:25:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-06T09:59:53.000Z (over 2 years ago)
- Last Synced: 2025-11-08T07:16:40.849Z (8 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
First clone this repository to your laptop:
```bash
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
```
## Fetch an activity with the Bored API
#### endpoint
https://www.boredapi.com/api/activity/
#### documentation
http://www.boredapi.com/documentation#endpoints-random
## Goal
- Click the button
- Fetch an activity using fetch
- Insert the activity into the DOM
## Specs
Launch your local webserver with:
```bash
serve
```
Open [`localhost:8000`](http://localhost:8000) in your browser.