Description
A game built with React and Redux where players are shown a scrolling chart of an anonymous stock and can buy/sell shares. The chart is updated incrementally with 100 days of prices during the game. At the end of the game the player is name of the stock and time period are revealed.
Demo
App link: Anonymous Stock Trading Game
Local Installation
Install the API: follow the installation instructions on the API repo
To install and run the React app on your local machine:
- Click the green Clone or download button above and click the copy to clipboard button
- From your terminal, run
git clone [paste the link from step 1]
- Then run cd
stock-trading-game-client
to navigate to the directory - Run
npm install
to install the necessary packages and dependencies - Create a
.env
file in the root of your local directorystock-trading-game-client/.env
and add the following line:REACT_APP_API_URL=http://localhost:4000/api
- Run
npm start
to start the app