Giter Site home page Giter Site logo

zgiles / speedtest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miquels/speedtest

0.0 1.0 0.0 107 KB

HTML5 speedtest, javascript client and golang server. Responsive interface, can be used on desktop, tablets and phones. Uses the same algorithm as Ookla / speedtest.net, and gives approximately the same results.

JavaScript 40.89% HTML 0.60% Makefile 0.30% Go 4.78% Vue 51.20% CSS 2.23%

speedtest's Introduction

speedtest

HTML5 Speedtest

This speedtest uses the same algorithm as the Ookla / speedtest.net test. Because of that it gives about the same results.

It has a responsive interface, and can be used on desktop, tablets and phones.

screenshot

Development / Build Setup

  • as usual, you need nodejs and yarn
  • you need to have the Go compiler (golang) installed, version 1.6 or later (for debian jessie, there's a modern enough version in jessie-backports)
  • the Makefile for the server sets GOPATH to $HOME. That means the build environment will put the go library dependencies in ~/src and ~/pkg. You might have to create ~/src first. If your setup is different, edit server/Makefile.

Then clone the repo and build:

# clone repo
cd ~/src
git clone https://github.com/miquels/speedtest.git
cd speedtest

# install dependencies
yarn

# install configuration file
cp static/config.json.example static/config.json
vim static/config.json

# serve with hot reload at localhost:8080
yarn run dev

# build for production with minification
yarn run build

Run the server

# build server
yarn run build-server

# run server
server/server

If you point yout browser at localhost:8080, you should see the webinterface.

If it doesn't work, use your browsers debugger/inspector, and look at the javascript console - that should give you a hint as to what is going on. For example, Chrome on OSX, press Option + Command + J.

Production use

# build
yarn run build

# copy files to your webservers root
cp -av dist/* /path/to/www/html
cp static/config.json /path/to/www/html/static

You also need to run the API server as a daemon- that's OS specific, and no sysv / systemd / whatever files have been included yet. The easiest solution is to run it in a ``screen'' session for now :)

speedtest's People

Contributors

miquels avatar kukac7 avatar

Watchers

Zach avatar

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.