Coder Social home page Coder Social logo

jboverfelt / infest Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.86 MB

An API for Baltimore City Restaurants closed down for health code violations

Home Page: https://balto-restaurant-closures.herokuapp.com/

License: Apache License 2.0

Go 100.00%
civic-hacking restaurant health baltimore baltimore-city

infest's Introduction

infest

Provides an API for the Baltimore City Recent Food Establishment Closures page here

The application scrapes data from the page periodically and exposes that information in a queryable REST api.

As of early 2017, this particular data is not exposed on the Open Baltimore Portal, and having this data easily accessible will enable a wider variety of civic hacking the future. Examples could include notification systems, search engines/food review integrations, and geographic visualizations

using

The app is deployed here

The valid url params are as follows:

  • per_page - the number of results returned per page - default is 20
  • page - the page offset - default is 1
  • sort - accepts lowercase param names followed by either ".asc" or ".desc" (e.g. "closuredate.desc")
  • name - filters for an exact match on the name field
  • startDate - shows all records for which closuredate is after the given date. Format is m/d/yyyy
  • endDate - shows all records for which closuredate is before the given date. Format is m/d/yyy
  • reason - does a full text search in the reason field for the given item

running

The below environment variables must be set for the app to run. Defaults are given as well.

  • CLOSURES_URL - the url of the health department page with the restaurant closures
  • CLOSURES_SCHEDULE - a schedule compatible with the robfig/cron library. Default is every minute.
  • PORT - the port that the application will run on
  • GO_ENV - Either "development" or "production" depending on the environment. Default is development if unset.

dependencies

The full list is in go.mod. In development and test the app uses sqlite to keep it lightweight. In production, postgres is used.

infest's People

Contributors

jboverfelt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

infest's Issues

A Great Job Opportunity For You

Dear Jboverfelt [templateError: last name not found],

This is my third email and I am beginning to think you are ignoring me! I am sorry to contact you out of the blue, but wait till you hear what I have to tell you!

I have been looking at your impressive GitHub and LinkedIn pages, and I like what I see. I have some clients that I am sure will also like what they see!

Let's get together on a quick call, and talk about a great offer I have with an established large company with all the benefits of a cool new startup. This company has a new product in the online digital bank futures defense weapons pinterest facebook medical big data telemetry education market. They are looking for a senior COBOL/Node.js developer, and given your fantastic projects, I think you are a perfect fit!

This will be the next Twitter! And they're offering a gracious compensation package of up to $34k for senior engineers like yourself. And wait until you hear about the benefits! Compensation for your relocation to Springfield is included, up to $500!

Please call me right away because this client can't wait!

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.