A simple Blackjack game built with React, Vite, and Tailwind CSS.
- Play classic Blackjack against the dealer
- Responsive UI with modern styling (Tailwind CSS)
- Toast notifications for game events
- Client-side routing with React Router
-
Clone the repository:
git clone https://github.com/your-username/blackjack.git cd blackjack -
Install dependencies:
npm install # or yarn install -
Start the development server:
npm run dev # or yarn dev -
Open http://localhost:5173 in your browser.
npm run build
# or
yarn buildThe production-ready files will be in the dist/ directory.
You can deploy the dist/ folder to any static hosting service (e.g., Netlify, Vercel).
To support client-side routing, add a _redirects file in the public/ folder with:
/* /index.html 200
src/
components/ # React components (Card, GameControls, etc.)
pages/ # Page components (Home, NotFound)
public/ # Static assets
styles.css # Tailwind CSS styles
vite.config.ts # Vite configuration
MIT
Made by Dario wtih ❤️