https://github.com/ioki-mobility/tictxttoe
Play https://tik-tak-tioki.fly.dev/ via SMS
https://github.com/ioki-mobility/tictxttoe
hackday tiktaktioki
Last synced: about 1 year ago
JSON representation
Play https://tik-tak-tioki.fly.dev/ via SMS
- Host: GitHub
- URL: https://github.com/ioki-mobility/tictxttoe
- Owner: ioki-mobility
- License: mit
- Created: 2022-09-29T08:08:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-29T08:22:22.000Z (over 3 years ago)
- Last Synced: 2025-02-10T05:56:51.919Z (over 1 year ago)
- Topics: hackday, tiktaktioki
- Language: Go
- Homepage:
- Size: 1.38 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# TicTxtToe
An Tic Tac Toe client which can be played over SMS.
https://user-images.githubusercontent.com/64888250/192966997-e1fa0aa6-2e28-42bd-ab32-39c38c993997.mp4
The project was created at the [Hackday 2022](https://stefma.medium.com/a1d14341e3f2).
## Setup
We use [twilio](https://www.twilio.com/) to send the SMS.
Therefore you need to create a twilio account and set up the ["Mesage/SMS"](https://www.twilio.com/messaging/sms) feature.
> **Note**: For testing purpose you can use the trial version of twilio.
Afterwards you have to paste the credentials in a file named `config.json`:
```json
{
"username": "TWILIO_USERNAME",
"password": "TWILIO_PASSOWRD",
"phonenumber": "TWILIO_PHONENUMBER"
}
```
Now you can run the server:
```
go run main.go
```
You may want to use [ngrok](https://ngrok.com/) to expose the them to the internet.
The URL has to be set as a [SMS webhook for your phonenumber](https://www.twilio.com/docs/serverless/functions-assets/quickstart/receive-sms#set-a-function-as-a-webhook) in the twilio console to receive the SMS someone sends to the twilio phonenumber.
> **Note**: In case you use the trial account you have to verify all phonenumbers who sends a SMS to your twilio phonenumber first. See also the [twilio docs](https://support.twilio.com/hc/en-us/articles/223180048-Adding-a-Verified-Phone-Number-or-Caller-ID-with-Twilio) for this.