Requires running instance of Redis! Find more info about Redis here Redis can be run natively or through docker using the following image
An attempt to build a clone of Adventure Capitalist, Redis/Node/Express/React To run app:
- Clone the project (https://github.com/c3ho/AdventureCapitalist.git)
- Install the project dependencies with npm install or npm -i
- Have a running instance of Redis
- cd /src/backend/data/
- node app.js to start backend
- npm start to start frontend
Assumptions:
- This app only supports one player
- The game bonuses only go up to 2000 of each business
- There are only businesses from earth that are available
- Only upgrades until Monopoly (1 trillion) are available
Current Issues:
- Managed businesses are not being fired after when timer is finished
- Issues purchasing a shop when a business is counting down (includes auto), this should probably affect when bonuses are being applied also
- Purchasing cash on the front-end is being updated after purchasing upgrades/managers. A refresh is required.
toDo:
- Make code more consistent (using db(Redis) vs in-memory storage)
- Refactor currencyFormatter as an export
Available Scripts
In the project directory, you can run:
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
yarn build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.