Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.