Giter Site home page Giter Site logo

endurancecode / ftp-race-rank-timing-results Goto Github PK

View Code? Open in Web Editor NEW

This project forked from federacao-triatlo/race-rank-timing-results

0.0 0.0 0.0 205 KB

Google Apps Script for a spreadsheet to manage timing and generate the classifications of the competitions promoted by the Portuguese Triathlon Federation

License: MIT License

JavaScript 100.00%
google-apps-script javascript

ftp-race-rank-timing-results's Introduction

RaceRank: Timing & Results

Google Apps Script for a spreadsheet to manage timing and generate classifications of triathlon races

Table Of Contents

  1. Introduction
  2. Development
    1. Technologies
    2. Installation
  3. License

Introduction

RaceRank: Timing & Results is a Google Apps Script for a spreadsheet to manage timing and generate classifications of the competitions promoted by the Portuguese Triathlon Federation.

Development

For the development of RaceRank: Timing & Results, Google Clasp is used and therefore node (and npm) needs to be installed in the development machine.

Technologies

RaceRank: Timing & Results uses the following npm packages for its development:

Installation

To start developing RaceRank: Timing & Results, clone this repository and install the required npm packages with the following commands:

git clone [email protected]:federacao-triatlo/race-rank-timing-results.git
cd race-rank-timing-results
npm install

To setup the connection with the Google Apps Script, copy the file .clasp.json.template and rename the copy as .clasp.json. Then define the appropriate values for the scriptId and rootDir keys.

To find the scriptId value of the project, follow the below steps:

  1. Open Apps Script project.
  2. At the left, click Project Settings settings.
  3. Under IDs, copy the Script ID.

The value for the rootDir key is the absolute path of the local repository.

Then, enable the Google Apps Script on the user settings page.

To enable the connection with the Google Apps Script, it's necessary to sign into the Google account where the Apps Script project are stored. It will be done with the following command:

npm run login

The above command executes one of the scripts defined in the package.json file. With its execution, a browser window or tab will open, displaying a Google OAuth consent screen. If prompted, select the Google account that you want to use to authenticate Google Clasp.

The consent screen will display the permissions that Google Clasp requires to access your Google account and manage your Google Apps Script projects. Review the permissions carefully to ensure that you trust the application requesting access and then click "Allow" to grant Google Clasp the necessary permissions.

After granting permissions, the Google Clasp authentication token is stored in a file named .clasprc.json, which is created in the user's home directory (this is a global authentication token).

To pull the code from the online project, execute the following command:

npm run pull

To push your local code changes to the online project, execute the following command:

npm run push

Very important notice

The command clasp push replaces code that is on online project and clasp pull replaces all files locally. For this reason, do not concurrently edit code locally and on script.google.com

Check the clasp official documentation and the clasp codelabs to learn more about the usage of Google Clasp.

License

RaceRank: Timing & Results is licensed under the terms of MIT License.

ftp-race-rank-timing-results's People

Contributors

endurancecode 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.