https://github.com/eDatos/istacGDSindicators
Google Data Studio connector for accessing the indicators distributed through the API of the Canary Islands Data Infrastructure and Statistical Metadata (eDatos)
https://github.com/eDatos/istacGDSindicators
api api-client data data-connectors data-science google-data-studio javascript official-statistics open-data statistics
Last synced: about 6 hours ago
JSON representation
Google Data Studio connector for accessing the indicators distributed through the API of the Canary Islands Data Infrastructure and Statistical Metadata (eDatos)
- Host: GitHub
- URL: https://github.com/eDatos/istacGDSindicators
- Owner: eDatos
- License: agpl-3.0
- Created: 2020-03-05T08:40:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T12:35:36.000Z (over 3 years ago)
- Last Synced: 2024-07-30T19:42:09.368Z (almost 2 years ago)
- Topics: api, api-client, data, data-connectors, data-science, google-data-studio, javascript, official-statistics, open-data, statistics
- Language: JavaScript
- Homepage:
- Size: 1.31 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-canarias - istacGDSindicators - square&label=%E2%AD%90)](https://github.com/eDatos/istacGDSindicators/stargazers) [](https://github.com/eDatos/istacGDSindicators/commits/master) [](https://github.com/eDatos/istacGDSindicators) [](https://github.com/eDatos/istacGDSindicators/blob/master/LICENSE) [](https://www.gobiernodecanarias.org/istac/) - Conector Google Data Studio para indicadores de la API de la infraestructura eDatos de Canarias. (Datos Abiertos y EstadÃsticas)
README
# 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](https://developers.google.com/apps-script/ "Google documentation").
## 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)](https://datastudio.google.com/datasources/create?connectorId=AKfycbytOOPf59snu0F9vtrgZm5s-W5n7DednEinhTQcGfg "Latest Version").
When the development version is ready for release, the production deployment will be in the [Production deployment](https://datastudio.google.com/datasources/create?connectorId=AKfycbwWdOQXEaKwcS3zt0KeRGTiNoTyL-xqMoeZ3OolXv3tmudA1PDSqIF51c76P0uYNstQ "Production deployment")
You could also get this url by editing the [project](https://script.google.com/home) in the G Suite Developer Hub. Then click in `Publish --> Publish from manifest`. You can check the [documentation](https://developers.google.com/datastudio/connector/use).
### 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](https://script.google.com/home/projects/16Vm8KjdpnjBEedolHrcc7HHRK0BShsG8rTy9ObQBGuz5kbLTwgEBnjv6/executions).
## 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](https://developers.google.com/apps-script/concepts/deployments).
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](https://developers.google.com/apps-script/guides/clasp)
#### _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](https://developers.google.com/datastudio/connector/deploy).