File tree 2 files changed +32
-2
lines changed
2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
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>"
Original file line number Diff line number Diff line change 1
1
# joke.town 🤡 🏘
2
2
3
+ ## file structure
4
+
3
5
[ server.js] ( server.js ) : server code, run with Node.js
4
6
5
7
[ number.html] ( number.html ) : file which simply has a link to the phone number to
6
8
show on https://joke.town
7
9
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
10
15
11
16
[ big_keyboard.py] ( big_keyboard.py ) : DEPRECATED – this file was used to catch the
12
17
button presses, but pretty ugly with a while loop
@@ -17,3 +22,14 @@ events instead of checking the satate in a while loop
17
22
[ assets/] ( assets/ ) : all files needed by the screen page
18
23
19
24
[ 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/ )
You can’t perform that action at this time.
0 commit comments