Skip to content

MyEtherWallet/MEWconnect-API-V2

Repository files navigation

MewConnect Pairing Server

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.

Setup

It is a required that you have node.js, Docker, and Docker Compose installed on your system.

.env

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

Install

npm install

Test

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

Deploying to AWS

npm run deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published