https://github.com/178inaba/fizzbuzz-twitterbot
Let's FizzBuzz!
https://github.com/178inaba/fizzbuzz-twitterbot
fizzbuzz twitter-bot
Last synced: 9 months ago
JSON representation
Let's FizzBuzz!
- Host: GitHub
- URL: https://github.com/178inaba/fizzbuzz-twitterbot
- Owner: 178inaba
- License: mit
- Created: 2016-12-01T17:58:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T02:09:21.000Z (about 9 years ago)
- Last Synced: 2024-06-20T15:48:05.969Z (about 2 years ago)
- Topics: fizzbuzz, twitter-bot
- Language: Go
- Homepage: https://twitter.com/FizzBuzzBot
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FizzBuzz Twitter Bot
[](https://travis-ci.org/178inaba/fizzbuzz-twitterbot)
[](https://coveralls.io/github/178inaba/fizzbuzz-twitterbot?branch=master)
[](https://goreportcard.com/report/github.com/178inaba/fizzbuzz-twitterbot)
## Docker
### Build
```console
$ docker build --force-rm --no-cache -t 178inaba/fizzbuzz-twitterbot .
```
### Run
```console
$ docker run -d --restart unless-stopped -e CONSUMER_KEY=... -e CONSUMER_SECRET=... -e ACCESS_TOKEN=... -e ACCESS_TOKEN_SECRET=... --name fizzbuzz-twitterbot 178inaba/fizzbuzz-twitterbot
```
### Compose
#### Up
```console
$ docker-compose up -d --build
```
#### Down
```console
$ docker-compose down
```
## Test
Require MySQL or MariaDB.
```console
$ mysql -u root < misc/sql/create_test_db.sql
$ mysql -u root fizzbuzz_twitterbot_test < misc/sql/ddl.sql
$ go test ./...
```
## License
[MIT](LICENSE)