Giter VIP home page Giter VIP logo

medtronic_task's Introduction

In order to run the service you have to install Docker installed. After, start Docker and run the commands below:

First, run this:

docker-compose build && docker-compose up

After the services are up, try, running this command below in a new terminal (you should first run this to try the endpoints):

docker-compose run web_app python etl.py

Try to run this until it works because the dbs might not receive connections.

After this works and the data is ingested successfully in the analytics db, open the local host on port 5000 so:

localhost:5000

You can the results there from analytics db.

Also you can try add a date to filter the distinct hobbies by adding it in the endpoint, like this:

localhost:5000/2019

Another endpoint is for the count that count for the year the distinct hobbies.

localhost:5000/count/2019

We could add an extra column for the data ingestion date and do a validation if the data was ingested in analytics_db for the current or previous date.

To run the test, simply run :

docker-compose run web_app python test_main.py

All the endpoints are supposed to be used by the customers and only hit the analytics db and the etl process is going to run based on schedule.

medtronic_task's People

Contributors

leonkarn avatar

Stargazers

 avatar Panos Kyriakis avatar

Watchers

 avatar

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.