Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

a-h/service-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservices Example

Example implementations of:

  • A background process which:
    • Imports data from flat files into a MongoDB instance
    • Provides basic metrics to a HTTP endpoint
  • A REST interface which:
    • Reads data from the MongoDB instance
    • Provides basic metrics to a HTTP endpoint

The example uses the UK Food Standards Agency dataset, which rates restaurants by the hygeine of their establishments.

Example Platforms

  • Node.js / Express
  • Python / Tornado
  • Java / Dropwizard

How to Use

use establishments
db.createUser({ user: "food_standards", pwd: "123456", roles: [ "readWrite" ] })
  • Use the download_data.py script to download the latest set of data. The script then converts the XML files into a single file containing a JSON object per line.
    • To run the setup.py file, you'll need to add the xmltodict package:
      • pip install xmltodict
  • Each service example includes an import program.

About

Import process and REST service examples.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published