Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suzukiryuichiro/http-and-api-lecture-1343
https://github.com/suzukiryuichiro/http-and-api-lecture-1343
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/suzukiryuichiro/http-and-api-lecture-1343
- Owner: SuzukiRyuichiro
- Created: 2023-08-06T20:42:18.000Z (over 1 year ago)
- Default Branch: prep
- Last Pushed: 2023-08-07T09:26:35.000Z (over 1 year ago)
- Last Synced: 2024-11-09T09:39:47.844Z (about 2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- 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 [email protected]: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.