c3ho / AdventureCapitalist

Coding challenge to recreate some functionalities of the game Adventure Capitalist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Clone the project (https://github.com/c3ho/AdventureCapitalist.git)
  2. Install the project dependencies with npm install or npm -i
  3. Have a running instance of Redis
  4. cd /src/backend/data/
  5. node app.js to start backend
  6. npm start to start frontend

Assumptions:

  1. This app only supports one player
  2. The game bonuses only go up to 2000 of each business
  3. There are only businesses from earth that are available
  4. Only upgrades until Monopoly (1 trillion) are available

Current Issues:

  1. Managed businesses are not being fired after when timer is finished
  2. Issues purchasing a shop when a business is counting down (includes auto), this should probably affect when bonuses are being applied also
  3. Purchasing cash on the front-end is being updated after purchasing upgrades/managers. A refresh is required.

toDo:

  1. Make code more consistent (using db(Redis) vs in-memory storage)
  2. 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.

About

Coding challenge to recreate some functionalities of the game Adventure Capitalist


Languages

Language:JavaScript 85.7%Language:Shell 8.9%Language:HTML 2.8%Language:CSS 1.5%Language:Dockerfile 1.0%