The MewConnect Pairing Server attempts to pair two "signaling" peers together via a secure AWS Lambda Websocket connection. These peers will then establish a WebRTC connection to each other, allowing secure communication using the credentials created during the pairing process.
It is a required that you have node.js, Docker, and Docker Compose installed on your system.
Before installing, it is required that you create a .env file with the following variables obtained via your AWS and Twilio accounts:
# AWS Info and Credentials
AWS_DEFAULT_REGION=us-west-1
AWS_ACCESS_KEY_ID=****************************
AWS_SECRET_ACCESS_KEY=****************************
AWS_REGION=us-west-1
TABLE_NAME=signal-server-table
S3_BUCKET=signal-server-bucket
# Twilio Credentials (For TURN server)
TWILIO_ID=****************************
TWILIO_TOKEN=****************************
TWILIO_TTL=3600
npm install
Testing requires a proper .env.test
file to be in the root directory.
WEBSOCKET_URL=wss://**********.execute-api.us-west-1.amazonaws.com/dev
STUN_SERVER=stun:global.stun.twilio.com:3478?transport=udp
npm run test
npm run deploy