Skip to content

Commit d811517

Browse files
committed
Rename cmd/api to cmd/speakerdeck-api
1 parent 6a06012 commit d811517

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
all: build
22
build:
3-
go build -o bin/api ./cmd/api
3+
go build -o bin/speakerdeck-api ./cmd/speakerdeck-api
44

55
run: build
6-
bin/api
6+
bin/speakerdeck-api

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
A scraper implementation for SpeakerDeck, as a workaround due to the lack of an official API.
44

55
You can either use this as a library (`import speakerdeck "github.com/luxas/speakerdeck-scraper"`) or the
6-
ready-made (very lightweight) API implementation under `cmd/api`.
6+
ready-made (very lightweight) API implementation under `cmd/speakerdeck-api`.
77

88
`speakerdeck-scraper` also has support for extensions, the extension that currently exists is Location, which
99
can using a Google Maps API key (with access to the Geocoding API) geolocate your talks just by you putting `Location: <address>` in the Speakerdeck talk description!
1010

1111
## API Usage
1212

1313
```console
14-
$ make run
15-
go build -o bin/api ./cmd/api
16-
bin/api
14+
$ go get github.com/luxas/speakerdeck-scraper/cmd/speakerdeck-api
15+
$ $GOPATH/bin/speakerdeck-api
1716
INFO[0000] Starting Speakerdeck API...
1817
$ curl http://localhost:8080/api/users/luxas
1918
{ ... }

0 commit comments

Comments
 (0)