https://github.com/emmvs/httparty_and_apiaries_1565
https://github.com/emmvs/httparty_and_apiaries_1565
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emmvs/httparty_and_apiaries_1565
- Owner: emmvs
- Created: 2024-02-09T13:42:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T10:31:20.000Z (over 2 years ago)
- Last Synced: 2025-03-12T20:12:47.934Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 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.