Skip to content

dmarafetti/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♣ Blackjack Javascript v1.0.0

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:

  1. The Frontend. A vanilla js application running with Vite.
  2. The Backend A Node.js application.

Both the frontend and backend have Dockerfiles and are orchestrated using Docker Compose.

Roadmap

  • Implement basic game mechanics
  • Implement user's session
  • Integrate database for persistent storage
  • Enhance UI/UX
  • Add more features such us betting

Prerequisites

Make sure you have the following installed on your machine:

Project Structure

.
├── backend             # Backend code base
├── frontend            # Fronend code base
├── .env                # Environment variables
├── compose.yml         # Docker compose yaml
└── README.md

Setup and Run

Step 1: Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/dmarafetti/blackjack.git
cd blackjack

Step 2: Run Docker compose

Clone this repository to your local machine.

Don't forget to configure the .env file to properly setup http ports with VITE_DEV_SERVER_HOST and VITE_DEV_SERVER_PORT.

docker compose up --build

Step 3: Access the Application

Once the stack is up and running, open your browser and navigate to:

http://localhost:8001

About

Web implementation of the Blackjack game

Resources

Stars

Watchers

Forks

Languages