Reorganize stages into parts
@@ -26,6 +26,15 @@ git clone https://github.com/rtfeldman/elm-workshop.git
|
|||||||
cd elm-workshop
|
cd elm-workshop
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Create a GitHub Personal Access Token
|
||||||
|
|
||||||
|
We'll be using GitHub's Search API, and authenticated API access lets us experiment without worrying about the default rate limit. Since we'll only be accessesing
|
||||||
|
the Search API, these steps can be done either on your personal GitHub account or on a throwaway account created for this workshop; either way will work just as well.
|
||||||
|
|
||||||
|
1. Visit https://github.com/settings/tokens/new
|
||||||
|
2. Enter "Elm Workshop" under "Token description" and leave everything else blank.
|
||||||
|
3. Create the token and copy it into `Auth.elm`.
|
||||||
|
|
||||||
## Start with Stage 1
|
## Start with Stage 1
|
||||||
|
|
||||||
Run this at the terminal:
|
Run this at the terminal:
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -1,5 +1,6 @@
|
|||||||
module ElmHub (..) where
|
module ElmHub (..) where
|
||||||
|
|
||||||
|
import Auth
|
||||||
import Html exposing (..)
|
import Html exposing (..)
|
||||||
import Html.Attributes exposing (..)
|
import Html.Attributes exposing (..)
|
||||||
import Html.Events exposing (..)
|
import Html.Events exposing (..)
|
||||||
@@ -16,7 +17,9 @@ searchFeed query =
|
|||||||
let
|
let
|
||||||
-- See https://developer.github.com/v3/search/#example for how to customize!
|
-- See https://developer.github.com/v3/search/#example for how to customize!
|
||||||
url =
|
url =
|
||||||
"https://api.github.com/search/repositories?q="
|
"https://api.github.com/search/repositories?access_token="
|
||||||
|
++ Auth.token
|
||||||
|
++ "&q="
|
||||||
++ query
|
++ query
|
||||||
++ "+language:elm&sort=stars&order=desc"
|
++ "+language:elm&sort=stars&order=desc"
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"."
|
".", ".."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |