This project is a game developed as a demo. Currently, the game uses in-memory storage for persistence, meaning all data is lost when the application is closed. Future versions will implement a database for persistent data storage and also user's session.
It consists of two parts:
Both the frontend and backend have Dockerfiles and are orchestrated using Docker Compose.
- Implement basic game mechanics
- Implement user's session
- Integrate database for persistent storage
- Enhance UI/UX
- Add more features such us betting
Make sure you have the following installed on your machine:
.
├── backend # Backend code base
├── frontend # Fronend code base
├── .env # Environment variables
├── compose.yml # Docker compose yaml
└── README.md
Clone this repository to your local machine:
git clone https://github.com/dmarafetti/blackjack.git
cd blackjack
Clone this repository to your local machine.
Don't forget to configure the
.env
file to properly setup http ports withVITE_DEV_SERVER_HOST
andVITE_DEV_SERVER_PORT
.
docker compose up --build
Once the stack is up and running, open your browser and navigate to:
http://localhost:8001