Giter VIP home page Giter VIP logo

top-stations's Introduction

Top Stations

Build Status Docker Image

This service for Element43 serves a list of top stations by market volume, based on data gathered from esi-markets. The statistics are updated hourly and persisted to disk using BoltDB.

Issues can be filed here. Pull requests can be made in this repo.

Interface

The service's gRPC description can be found here.

Installation

Either use the prebuilt Docker images and pass the appropriate env vars (see below), or:

  • Install Go, clone this repo into your gopath
  • Get and run esi-markets
  • Set the ESI_MARKETS_HOST environment variable (see below)
  • Run go get ./... to fetch the service's dependencies
  • Run bash generateProto.sh to generate the necessary gRPC-related code
  • Run go build to build the service
  • Run ./top-stations to start the service

Now a gRPC server will listen on port 43000 unless configured otherwise, serving stats data once it has been generated.

Deployment Info

Environment Variable Default Description
CRON @hourly Stats refresh interval
DB_PATH /data/top-stations.db DB persistence path
LOG_LEVEL info The service's log level
ESI_MARKETS_HOST esi-markets.element43.svc.cluster.local:43000 Host/port of the esi-markets instance to be used
PORT 43000 Port the gRPC server will listen on

top-stations's People

Contributors

zweizeichen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

hamesleyceo

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.