Coder Social home page Coder Social logo

nyoma-diamond / portfoliomanager Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 4.0 115 KB

A portfolio manager designed for Google Sheets using Google Apps Script.

License: GNU Affero General Public License v3.0

HTML 12.84% TypeScript 87.16%
google-sheets spreadsheet portfolio-management stock-market google-apps-script google-app-script google-appscripts google-appsscript google-sheet google

portfoliomanager's Introduction

portfolioManager

This is a portfolio manager designed for Google Sheets using Google Apps Script.

This program's express purpose is for the streamlining of stock market portfolio tracking in Google Sheets through the use of either a future add-on or through the Google Apps Script editor.

This program is designed to be pushed to Google using Clasp. Click here to learn more about Clasp.

This program is written in TypeScript, meaning some additional work will be necessary in order to push to Google.

It is highly recommended to use Yarn instead of npm while working on this program. You can install Yarn here.

Instructions

Initial setup

Before working on this program its imperative that Clasp is installed. To do this you must first install Node.js, as it is neccessary to install Clasp. You can download Node.js here.

To get Clasp, open a terminal and run yarn global add @google/clasp or npm i @google/clasp -g if not using Yarn.

After installing Clasp you need to log in and give Clasp permissions to edit script files on your Google account. To do this run clasp login and go through the login screen.

Once logged in you need to enable the Google Apps Script API setting in Google Scripts. To do this, go to your Google Apps Script User Settings, click Google Apps Script API and set it to On if it isn't already.

Creating and setting up the project

Unfortunately there is no way to create a project in Google Scripts and link a spreadsheet to it after the fact, so we must first create a spreadsheet in Google Sheets. To do this, go to Google Drive and navigate to where you want to keep your spreadsheet, then click NEW, followed by Google Sheets in the dropdown menu. This will create a blank spreadsheet for you to work with.

Now that you have a spreadsheet to link the script to, open the Google Script Editor using alt+T+E or by going into the Tools menu and clicking Script Editor. Once in the Google Script Editor, you must set a name for the project (we recommend "portfolioManager" for consistency) and save it.

Now that the project is prepared you need to get the project ID so Clasp knows where to push to. In the Google Script Editor, go into the File menu and select Project properties. Once in Project properties find and copy the Script ID. Once you have the script ID, create a file called .clasp.json in your local portfolioManager directory containing {"scriptId":"<your script id>"}.

Pushing to Google

Once you have created a project in Google Scripts and are ready to push your work to Google you can do so using yarn tscpush or npm run-script tscpush if not using Yarn.

Alternatively, if you don't wish to do it using Yarn or npm you will need to compile the TypeScript files into JavaScript before you can push to Google. To do this, run tsc in a terminal.

Once the TypeScript has been compiled into JavaScript, you can push the files to Google using clasp push.

portfoliomanager's People

Contributors

nyoma-diamond avatar zlima12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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