Giter VIP home page Giter VIP logo

akvo-data-science-services's Introduction

Readme

This repo contains an example approach of setting a R webserver with akvo auht0 authorization. It uses a default data-science akvo email account in auth0 dev and prod envs

Final Purpose

The target idea is to import data from lumen using this webserver. Internally the R code can also connect to flumen to get flow-lumen data, transform it and then return a new dataset.

So the expected end is set up a new entrypoint that returns csv data so flumen can import it using the UI

[[file:https://github.com/akvo/akvo-data-science-services/blob/master/docs/flumen-import-link.png]],

then use the R entrypoint

[[file:https://github.com/akvo/akvo-data-science-services/blob/master/docs/flumen-import-link-url.png]]

How to use it?

docker-compose up --build

once you get these 2 lines

auth_1  | Starting server to listen on port 8000
api_1   | Starting server to listen on port 8000

now you'll be able to get flumen data with this entrypoint

http://localhost:7001/lumen-dataset/<LUMEN_INSTANCE>/<DATASET_UUID>

eg: http://localhost:7001/lumen-dataset/lumen/5ebbf42e-1e52-43f5-b3fd-edd1dee86002

workflow

You'll need an .env file with env vars in your project folder

Example auth values needed in projects/example-lumen/.env file

AUTH_USER_PASSWORD=XXXX
AUTH_USER_EMAIL=yyyyy
AUTH_CLIENT_ID=zzzzzz
AUTH_CLIENT_PASSWORD=wwwwww
AUTH_ISSUER=qqqqqq

TODO

https://github.com/akvo/akvo-data-science-services/issues

http://akvo-data-science-example-lumen/data

akvo-data-science-services's People

Contributors

carmen-akvo avatar dlebrero avatar tangrammer avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

akvo-data-science-services'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.