Git Product home page Git Product logo

edatos / istacgdsindicators Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 1.34 MB

Google Data Studio connector for accessing the indicators distributed through the API of the Canary Islands Data Infrastructure and Statistical Metadata (eDatos)

License: GNU Affero General Public License v3.0

JavaScript 100.00%
data-connectors data open-data api api-client statistics official-statistics javascript google-data-studio data-science

istacgdsindicators's Introduction

Google Data Studio Connector for Indicadores ISTAC

This is the Google Data Studio Connector implemented to retrieve data from the ISTAC API (Indicadores).

The connector is written in Apps Script.

Development environmet

To be able to work in this project you just need to pull the code from the repository and have [Clasp](https://developers.google.com/apps-script/Google Clouddes/clasp "Google documentation") installed on your system.

How to work in this project

Authenticate with Clasp

Once you have installed Clasp from the src directory you have to run:

clasp login

Now you can push code with your changes to Google by running:

clasp push

How to try the connector

Once you have develop something and you want to try it you have to push it and the connector will be in the Latest Version(Head).

When the development version is ready for release, the production deployment will be in the Production deployment

You could also get this url by editing the project in the G Suite Developer Hub. Then click in Publish --> Publish from manifest. You can check the documentation.

Debugging

To debug the connector you can put console.logs in the code, then you can see the logs in https://script.google.com/home/projects/ID_OF_THE_SCRIPT/executions (that's all I got for the moment), for example, you can see the logs for this connector in here.

Production environment

How to deploy an versioned deployment

In Google Data Studio you can create version of your coda that consists in numbered shanpshots of your code. Which allows users to continue using the versioned connector while developers can keep coding. You can see more information in the documentation.

To create a version you have to go to File --> Manage versions and create a new one with a descriptive name. You could also create a new version with clasp by running from src/:

clasp version NAME_OF_THE_VERSION

You can list all the versions with:

clasp versions

Once you have the version you can make a versioned deployment. You can do it with clasp or with the Google Cloud.

With Clasp

You can deploy the new connector with:

clasp deploy [version] [description]

And list the deployments with:

clasp deployments

You can find out more information about this in the clasp documentation

With the Google Cloud

To deploy a new version from the Google Cloud you have to go to edit the script. Then you go to Publish --> Publish from manifest and Create a new one. You give it a name and a version and save it. Then you will have the new url.

You can find out more information in the documentation.

istacgdsindicators's People

Contributors

aitorcarrera avatar carlosespinotimon86 avatar daniel-fernandez-edosoft avatar dependabot[bot] avatar edatosuser avatar sdelquin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

istacgdsindicators'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.