GithubHelp home page GithubHelp logo

jufemaiz / freq-finder Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.42 MB

API for discovery of frequencies of Australia's FM & AM Radio Stations

Home Page: https://freqfinder.herokuapp.com/stations.json

Ruby 97.10% HTML 0.24% Dockerfile 0.32% Makefile 2.30% Procfile 0.05%

freq-finder's Introduction

FreqFinder

Build Status Yard Docs

Not finding freaks but freqs - radio frequencies for when you're out and about.

Why? Because while Australia's ACMA publishes some things, a simple "what radio is available near me?" response just doesn't exist! It was inspired when my girlfriend called me wanting to know the TripleJ frequencies near her!

GeoCode base stations (not taking into account power...yet) against a location and get going with options to listen to!

API Support

Available at: https://freqfinder.herokuapp.com/v1/

  • Station https://freqfinder.herokuapp.com/v1/stations
  • Transmitter https://freqfinder.herokuapp.com/v1/transmitters

Available at: https://freqfinder.herokuapp.com/v2/

Stations

query {
  allStations {
    edges {
      node {
        title
        id
      }
    }
  }
}

Transmitters

query {
  allTransmitters(location: "-33.88051,151.20948") {
    edges {
      node {
        frequency
        band
        distance
        station {
          title
        }
      }
    }
  }
}

Requirements

If you are developing locally, bust out your Docker so that.

Development

Docker makes life lovely here.

docker-compose -f docker-compose.dev.yml build web
docker-compose -f docker-compose.dev.yml up web
docker-compose -f docker-compose.dev.yml run web bundle exec rake db:drop
docker-compose -f docker-compose.dev.yml run web bundle exec rake db:create
docker-compose -f docker-compose.dev.yml run web bundle exec rake db:migrate
docker-compose -f docker-compose.dev.yml run web bundle exec rake db:seed

You should then be able to access the service at:

localhost:3000

Testing

Testing is also nice with Docker!

docker-compose -f docker-compose.test.yml build web
docker-compose -f docker-compose.test.yml up web
docker-compose -f docker-compose.test.yml run web bundle exec rake db:drop
docker-compose -f docker-compose.test.yml run web bundle exec rake db:create
docker-compose -f docker-compose.test.yml run web bundle exec rake db:migrate
docker-compose -f docker-compose.test.yml run web bundle exec rake db:seed
docker-compose -f docker-compose.test.yml run web bundle exec rspec

freq-finder's People

Contributors

dependabot[bot] avatar jufemaiz avatar snyk-bot avatar

Stargazers

 avatar

Watchers

 avatar

freq-finder'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.