Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Latest commit

 

History

History
50 lines (38 loc) · 2.13 KB

README.md

File metadata and controls

50 lines (38 loc) · 2.13 KB

stockpal

An application that displays stock data from the IEX API and allows to perform analysis on the stock charts. This application was originally made for the Programmatic Content Management course at Tampere University of Technology. See it live in action at http://koodi.me.

Features

  • Browse IEX gainer stocks
  • Browse all available stocks and search from them
  • View stock information, news and chart
  • Perform moving average analysis on stocks
  • Save stocks to own list

Running locally

First, create an environment variable file from the sample file env.sample:

$ cp env.sample .env
$ vim .env
{EDIT FILE}

The GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET are not mandatory, but they are required for login services which are done via the Google OAuth2 API. For creating these for your local dev setup, navigate to https://console.developers.google.com/apis/dashboard, and:

  • create a new project
  • create credentials for that project
  • use the client ID and secret from the credentials in the values for GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET values in your .env file, respectively
  • allow http://localhost/login/google as an authorized redirect URI
  • Done!

Full instructions for Google Oauth2 available at https://developers.google.com/identity/protocols/OAuth2. Navigate to the project root directory and run make all.

Screenshots

All stocks

Searching from all stocks

Gainer stocks

Own stocks

Stock page

Stock chart

Stock chart with 150 day moving average applied