Git Product home page Git Product logo

speedtest-app's Introduction

speedtest-app Docker Pulls

An internet speed test web application leveraging either Ookla Speedtest-CLI (https://www.speedtest.net/apps/cli) or iperf3 (https://software.es.net/iperf/). Node.js service with React frontend using Material-UI.

Example use-case: test "wired speed" of a computer connected via hard-wired ethernet from any device on your network.

docker install


  • docker run -d -p 5000:5000 --name speedtest-app bwmoran/speedtest-app
    • port can be changed via environment variable PORT: -p PORT=3000
  • application should be running at http://localhost:5000

old-fashioned install


dependencies

  • Latest stable Node.js runtime release with npm
  • Git
  • Speedtest-CLI (https://www.speedtest.net/apps/cli)
    • note: if using Windows, you need to add the directory that contains speedtest.exe to system Path, so that it can be run globally. (for example: C:\Projects\ookla-speedtest-1.0.0-win64\)
  • iperf3
    • note: if using Windows, you need to add the directory that contains iperf3.exe to system Path, so that it can be run globally. (for example: C:\Projects\iperf-3.1.3-win64\)

installation

  • clone repository
    • git clone https://github.com/moranbw/speedtest-app.git
  • navigate to application directory
  • install dependencies and build client
    • npm run deploy
  • run application
    • npm run start
  • application should be running at http://localhost:5000

proxy example


set environment variable PROXY_PATH

  • docker run -d -p 5000:5000 -e PROXY_PATH="speedtest" --name speedtest-app bwmoran/speedtest-app

nginx

location /speedtest/ {
    proxy_pass http://your_ip_or_host:5000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

caddy

redir /speedtest /speedtest/
route /speedtest/* {
    reverse_proxy your_ip_or_host:5000
}

demo


Screenshot

other acknowledgements


speedtest-app's People

Contributors

dependabot[bot] avatar moranbw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

speedtest-app's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.