Trama App is an online event provider, built with twilio-video.js and Create React App.
This is a preview app.
- Server Back-end with Node.js, Docker and Postgres.
- Video and Chat built on Twilio Chat and Video API.
- There is no cost associated with deploying the app
- When using the app, you will be charged $0.01 / video participant minute.
You must have the following installed:
- Node.js v10+
- NPM v6+ (comes installed with newer Node versions)
- Docker (and create)
Run npm install
to install all dependencies from NPM.
If you want to use yarn
to install dependencies, first run the yarn import command. This will ensure that yarn installs the package versions that are specified in package-lock.json
.
The app requires the .env to be updated from the .env.example file.
You must provide the Twilio Credentials for the Video and Chat Token generation.
-
Create an account in the Twilio Console.
-
Click on 'Settings' and take note of your Account SID.
-
Create a new API Key in the API Keys Section under Programmable Video Tools in the Twilio Console. Take note of the SID and Secret of the new API key.
-
Store your Account SID, API Key SID, and API Key Secret in a new file called
.env
in the root level of the application (example below).$ TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $ TWILIO_API_KEY_SID=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $ TWILIO_API_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $ TWILIO_CHAT_SERVICE_SID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ DB_HOST=
$ DB_USER=
$ DB_PASS=
$ DB_NAME=
Install and open Docker.
docker version docker run --name DBNAME -e POSTGRES_PASSWORD=DBPSW -p DBPORT:DBPORT -d postgres docker start DBNAME
The Server has the following features:
- Video Token Generation
- Chat Token Generation
See browser support table for twilio-video.js SDK.
Run the app locally with
$ npm start
This will start the local token server and run the app in the development mode. Open http://localhost:3000 to see the application in the browser.
See the LICENSE file for details.