@@ -69,6 +69,9 @@ It's set up to use the twilio video `go` room type (2 participant max) when
6969
7070#### Local setup
7171
72+ Copy the [ example] ( webmoti-react/.env.example )
73+ environment file to ` .env ` in the same directory and fill in the values below
74+
7275- Open the [ Twilio Console] ( https://www.twilio.com/console ) .
7376- Click on 'Settings' and take note of your Account SID.
7477- Create a new API Key in the [ API Keys Section] ( https://www.twilio.com/console/video/project/api-keys )
@@ -77,42 +80,11 @@ It's set up to use the twilio video `go` room type (2 participant max) when
7780- (This step is optional because plugin-rtc will
7881 create a new conversation service called
7982 ` ${APP_NAME}-conversations-service ` . Make sure that both the react app .env
80- and the autojoin .env use the same conversation SID, otherwise they will be
83+ and the standalone-join .env use the same conversation SID, otherwise they'll be
8184 in isolated chats) Create a new Conversations service in the [ Services section] ( https://www.twilio.com/console/conversations/services )
8285 under the Conversations tab in the Twilio Console. Take note of the SID generated.
8386- Store your Account SID, API Key SID, API Key Secret, and Conversations Service
84- SID in a new file called ` .env ` in the root level of the application (example below).
85-
86- ``` bash
87- TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
88- TWILIO_API_KEY_SID=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
89- TWILIO_API_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
90- TWILIO_CONVERSATIONS_SERVICE_SID=ISxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
91-
92- # Using no auth is useful for testing multiple users (or testing in general)
93- # VITE_SET_AUTH=none
94- # You can also enable passcode authentication for use with the Twilio CLI rtc-plugin.
95- # See: https://github.com/twilio-labs/plugin-rtc
96- # VITE_SET_AUTH=passcode
97-
98- # Use firebase auth for deploying and only use passcode/none for testing
99- VITE_SET_AUTH=firebase
100-
101- # The following values are used to configure the Firebase library.
102- # See https://firebase.google.com/docs/web/setup#config-object
103- # These variables must be set if FIREBASE_AUTH is enabled
104- VITE_FIREBASE_API_KEY=
105- VITE_FIREBASE_AUTH_DOMAIN=
106- VITE_FIREBASE_STORAGE_BUCKET=
107- VITE_FIREBASE_MESSAGING_SENDER_ID=
108-
109- # set this to the remote.it persistent link (ending in /api)
110- # if running hand server locally, comment this out
111- VITE_API_DOMAIN=
112-
113- # set this to the livekit websocket url (if using livekit)
114- VITE_LIVEKIT_URL=
115- ```
87+ SID in the ` .env ` file.
11688
11789### Weird errors that happen sometimes
11890
@@ -242,32 +214,8 @@ pip install -r ~/webmoti-react/hand/app/requirements.txt
242214>
243215> You can also activate it by typing activatehs (this is setup in .bashrc)
244216
245- Create ` .env ` file in project root:
246-
247- ``` bash
248- # for tactile notifications
249- VAPID_PRIVATE_KEY=
250- VAPID_EMAIL=
251-
252- # for text to speech
253- ELEVENLABS_API_KEY=
254-
255- # for AI schedule
256- OPENAI_API_KEY=
257-
258- # for push to talk (if using)
259- LIVEKIT_API_KEY=
260- LIVEKIT_API_SECRET=
261-
262- # for vite client push to talk
263- REACT_APP_LIVEKIT_URL=
264- # for vite client tactile notifications
265- REACT_APP_SAVE_SUB_URL=
266- REACT_APP_NOTIF_APP_KEY=
267-
268- # set APP_ENV to dev for testing, set it to prod on raspberry pi
269- APP_ENV=dev
270- ```
217+ Next, copy the [ example] ( hand/app/.env.example )
218+ environment file to ` .env ` in the same directory and fill in the values
271219
272220Vapid key pairs (for tactile push notifications) can be generated using
273221 ` npx web-push generate-vapid-keys ` .
@@ -423,22 +371,8 @@ Installing `puppeteer` on raspberry pi (arm64) is broken. It doesn't install
423371
424372#### Create .env in home directory
425373
426- ``` bash
427- # these are the same values used in the react app .env
428- TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
429- TWILIO_API_KEY_SID=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
430- TWILIO_API_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
431- TWILIO_CONVERSATIONS_SERVICE_SID=ISxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
432-
433- # set this to the url of the deployed react app
434- WEBMOTI_URL=
435-
436- # for student-view raspberry pi (remove this for board-view)
437- IS_STUDENT_VIEW=true
438-
439- # for testing autojoin.js
440- # IS_TEST_USER=true
441- ```
374+ Copy the [ example] ( standalone-join/.env.example )
375+ environment file to ` .env ` in the same directory and fill in the values
442376
443377#### Making the autojoin script run on boot
444378
0 commit comments