Skip to content

๐Ÿ“ˆ Create stock portfolios and study their performance!

License

Notifications You must be signed in to change notification settings

alexiakl/stockd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Stockd

A dockerized app consisting of React web app, Slim PHP framework API, MySQL db and Chart.js plots!

  • Create multiple portfolios to track profits and watch stocks
  • Compare the performance of different stocks

Stockd Web App

Install

Stockd uses IEX Cloud API to get Stocks data and Chart.js to plot it. To spin up this project:

  • Sign up for an account at IEX Cloud and generate production and test API tokens
  • Under api/src/ directory, rename configs-sample.php to configs.php
  • Provide DEV_TOKEN and PROD_TOKEN that you generated earlier, and make sure to provide a proper JWT_SECRET_KEY
  • Make sure you have docker installed, and then from project root run:
docker-compose up -d

That's it! Once done, check the app out: http://localhost:8080

Login using the following demo account:

  • user: sherlock@holmes.com
  • pass: doctorwatson

API

API is built using Slim framework and is available on port 8000: http://localhost:8000/hello

React Web App

The frontend is developed using React and Redux

Database

To connect to the database, use the following configs:

  • db name: stockd
  • user: stockd
  • pass: stockd
  • host: 127.0.0.1
  • port: 3308

TODO

  • User sign up