https://github.com/hebilicious/capitalistadventures
Game Closure Coding Challenge
https://github.com/hebilicious/capitalistadventures
Last synced: 5 months ago
JSON representation
Game Closure Coding Challenge
- Host: GitHub
- URL: https://github.com/hebilicious/capitalistadventures
- Owner: Hebilicious
- Created: 2020-05-27T13:40:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T05:38:45.000Z (over 2 years ago)
- Last Synced: 2025-04-08T04:51:56.832Z (about 1 year ago)
- Language: TypeScript
- Size: 810 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://app.netlify.com/sites/capitalist-adventures/deploys)
An [Hosted Version](https://capitalist-adventures.netlify.app/) is available here.
# How to use :
(npm can be used instead of yarn)
Install dependencies (Make sure you have node 14+)
```
yarn
```
Start the dev server at localhost:3000
```
yarn dev
```
Build the project
```
yarn build
```
# Project dependencies :
- vue 3 : Powerful and simple frontend framework. I went with vue instead of react because this challenge was the perfect opportunity to test the newest version, currently in beta.
https://github.com/vuejs/vue-next
- vite : web dev build tool that serves native ES Module to the browser directly. Typescript support out of the box, extremely fast and experimental. Support building with rollup for production
https://github.com/vitejs/vite
- localforage : Library built by Mozilla around web storage APIs, ideal to play with indexedDB. This is used to implement the offline functionalities. https://github.com/localForage/localForage
_No other dependencies/frameworks were used._
## Current features :
- Buy businesses
- Upgrade Items with the capacity mechanic
- Make Money from a business
- Hire manager
- Offline feature
- Track how many items have been sold
- Handle multiple item type per business
- You can easily modify the item/business list, prices and such by tweaking the businessList object (in useBusiness.ts)
- The offline features work with indexedDB, so you can cheat out your money over there ...
## Potential Future features :
- UI : Animations, Polish, Assets (music, pictures, icon)
- Ux: Handle different screen sizes/devices
- Gameplay : Business Upgrades, Items upgrades, Item Shop, Achievements ...
- Performances : Queue system with batch write.
- Best practise : Implement Service worker to handle client updates with precision
- Server components : Authentication && Save logic
- Server component : API based - Server side logic for money things, to avoid client side tampering