A mobile web app based on the popular drinking game ring of fire with the aim of full customisation and an alternate scoring system that doesn't require drinking.
Teck Stack:
- React
- SASS
- Axios
- Vite
Dependencies:
With SSH
git clone git@github.com:kabirseth4/deck-of-fire-client.git
Or with HTTPS
git clone https://github.com/kabirseth4/deck-of-fire-client.git
Go to the project directory
cd deck-of-fire-client
Install
npm install
Start locally and on your local network
npm start
Start locally only
npm run dev
To run this project, you will need to add the following environment variable to your .env file:
VITE_APP_BASE_API_URL
If you are running the project locally this can be set to:
http://localhost:<server-port-number>
e.g. http://localhost:8080
If you are using the project on another device on the same network, this should be set to:
http://<device-ip-address>:<server-port-number>
e.g. http://192.168.X.XXX:8080
You can see your device IP address in the terminal when running npm start
.
-
On the Decks page, tap Create deck to go to the Create deck page.
- Here you can enter a name for your new deck and choose whether or not it is custom and scored.
-
On the Cards page, tap Create Card to bring up the Create card modal.
- Here you can add a name and description for your new card.
-
On the Decks page, tap View Cards on one of your existing decks to go to the Deck details page.
-
Tap Add Card to bring up the Add card to deck modal.
- Here you can select one of your previously created cards.
- If you are adding to a Custom and/or Scored deck you will also be required to input a number of occurrences and/or a penalty respectively.
If your deck is Standard and already has 13 cards, you will not be able to add any more cards.
Once a Custom deck has at least one card, or exactly 13 cards for a Standard deck, you will have the option to play the deck.
-
Tap either Play Deck on the Deck details page or Play on the Decks page.
- If this is the first time playing a deck you will be directed to the Game setup page where you can add your players.
-
Once you have added all your players, tap Save & Play to begin the game.
Enjoy!
- Implement authentication.
- Implement game scoring system.
- Add in ability to delete and update decks and cards
- Add in default deck and guest flow for users who aren't logged in.
- Cache game in local storage so that it doesn't restart on refresh.
- Start developing support for cards with more complex logic.