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 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, renameconfigs-sample.php
toconfigs.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: https://localhost:8080
Login using the following demo account:
- user:
[email protected]
- pass:
doctorwatson
API is built using Slim framework and is available on port 8000: https://localhost:8000/hello
The frontend is developed using React and Redux
To connect to the database, use the following configs:
- db name:
stockd
- user:
stockd
- pass:
stockd
- host:
127.0.0.1
- port:
3308
- User sign up