Skip to content

Commit 683bb9c

Browse files
update readme and add example environment file
1 parent b0df44b commit 683bb9c

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.example.env

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# server
2+
3+
NODE_ENV="development" # or "production"
4+
PORT=1337
5+
IOPORT=1337 # should be different in production
6+
7+
HTTPS_KEY="absolute/path/to/key.pem"
8+
HTTPS_CERT="absolute/path/to/cert.pem"
9+
10+
# credentials
11+
12+
TWILIO_ACCOUNT="<twilio accout sid>"
13+
TWILIO_SID="<twilio api key sid>"
14+
TWILIO_KEY="<twilio api key secret>"

README.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# joke.town 🤡 🏘
22

3+
## file structure
4+
35
[server.js](server.js): server code, run with Node.js
46

57
[number.html](number.html): file which simply has a link to the phone number to
68
show on https://joke.town
79

8-
[index.html](index.html): file which is the content of the screen, available at
9-
https://joke.town/screen
10+
[screen.html](screen.html): file which is the content of the screen, available
11+
at https://joke.town/screen
12+
13+
[demo.html](demo.html): file which is the virtual joke.town consisting of the
14+
screen + buttons, available at https://joke.town/demo
1015

1116
[big_keyboard.py](big_keyboard.py): DEPRECATED – this file was used to catch the
1217
button presses, but pretty ugly with a while loop
@@ -17,3 +22,14 @@ events instead of checking the satate in a while loop
1722
[assets/](assets/): all files needed by the screen page
1823

1924
[data/](data/): the _database_, where users.json and jokes.json gets saved
25+
26+
[.env](.env.example): the configuration file which contains all settings (has to
27+
be renamed to `.env`)
28+
29+
## services
30+
31+
joke.town uses Twilio to communicate via SMS. Twilio can be tested for free with
32+
this, get \$10 free when using my refferal link:
33+
[www.twilio.com/referral/X8xo9b](www.twilio.com/referral/X8xo9b)
34+
35+
the service is hosted on [Uberspace](https://uberspace.de/)

0 commit comments

Comments
 (0)