Giter Club home page Giter Club logo

isvhsopen's Introduction

IsVHSOpen.com

Is VHS open?

This application pretty much serves one purpose, tell you if VHS is open. It's also overly complicated for what it does. Why? Why not!?

Installing

$ npm install -g gulp  #May require sudo
$ npm install
$ gulp build

This will install glup globally and then install all package requirements locally. 'gulp build' will then generate relevant css and javascript.

Running

export INFLUX_HOST=<your influx host>
export DEBUG=isvhsopen:*
npm start

This will launch a default server but you'll need to give it access to a influx server to be useful. A full list of config options are found in controller/config.js

If you want a quick easy influx setup I recommend starting one via docker

docker run -d -p 8083:8083 -p 8086:8086 tutum/influxdb

This will start a clean influxdb container, from there you just have to create the database using the web UI:

CREATE DATABASE api;

Development

If you are developing then you will want the javascript/css generated while you make changes.

gulp watch

When you make a change it will auto build anything that is needed.

Testing

gulp test

Running from docker

docker run -d --env-file=<env file> -p <port>:3000 vanhack/isvhsopen

This will pull down the app from docker hub and start it.

The env file is used to hold a list of application variables, see controller/config.js for a list of options that can be set. The contents of the file should be in the format of VARNAME=value

If you don't want the version from docker you can build it yourself:

docker build -t vanhack/isvhsopen ./

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.