GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - agilityfeat/file-transfer-demo

BranchesTags
Open more actions menu

Latest commit

 

History

47 Commits
47 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
public
public
 
 
server
server
 
 
.babelrc
.babelrc
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

file-transfer-demo

A small peer to peer file transfer demo, implemented with WebSocket signaling, React, Redux and WebRTC data channels to illustrate the flow of RTCPeer connections and datachannels, with the use of redux-logger for a clear and consice way of illustrating the flow of data.

file-demo-gif

Running the Demo

All you need to do in order to get started is:

$ git clone https://github.com/agilityfeat/file-transfer-demo && cd file-transfer-demo
$ cp ./.env.example ./.env && cp ./client/config.example.js ./client/config.js
$ npm i

After that one time only setup, run:

$ npm start

and navigate to http://localhost:3000, in several chats to use the demo, open several tabs or use in diferent devices to stablish a random connection between two peers, chat and transfer files, all with the help of WebRTC data channels.

Further Configuration

client/config.js

You can update this values in order to setup your TURN/STUN servers or reduce the amount of log that the application will display on your browser, this will increase the speed of the application and reduce the clutter on your console.

const config = {
  wsUrl: `ws://${location.host}:8080`,
  stun: {
    "urls": "stun:stun.l.google.com:19302"
  },
  turn: {
    "urls": "",
    "credential": "",
    "user": ""
  },
  useTurn: false,
  reduxLog: true
};

export default config;

.env

In this file you can adjust the ports that you wish to use when running the demo.

export APP_PORT=3000
export WS_PORT=8080

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

20 stars

Watchers

5 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.