This portfolio tracking application was implemented using Go and React. Please use the instructions below to setup these tools for development.
Install Go by downloading the installer from here. Once installed, build the backend Go server for the application:
cd backend
go build -v -o go-server.exe
Download the JSON credentials file to target machine (if credentials.json is not already present). You can download the JSON file from the Google Cloud API Credentials page, under the OAuth 2.0 Client IDs section.
The web backend depends on a MongoDB database to store the wealth of information pulled from Yahoo Finance. Download and install MongoDB (Community Edition) for Windows here. Once installed, start MongoDBCompass, connect to the MongoDB server, and create a new time-series database named polly-data-prod
.
Python 3 is used as a helper script for querying stock data from Yahoo finance. Install Python from here.
Run the go-server.exe
executable from the command line. When the server is finished querying data from Yahoo finance and reading Google sheets, it will begin listening for incoming requests from the frontend.
PATH
.Navigate to the ui
directory and install the npm packages for this application:
cd ui npm install
To start the React web server, run the following from the ui
directory:
npm start
Once started, you should be able to access the app in the browser here:
http://localhost:3000