Welcome to Casino Royal, an online casino game platform built using the MERN stack (MongoDB, Express, React, Node.js). Users can register, log in, and play various casino games to win or lose coins. The current available games include High-Low and Blackjack.
Casino Royal is a web application that provides an interactive casino gaming experience. Users can register and log in to play games, win or lose coins, and track their progress. The current games offered are High-Low and Blackjack, with more games to be added in the future.
-
User Authentication
- Users can register and log in.
-
Game Mechanics
- High-Low: Guess whether the next card will be higher or lower.
- Blackjack: Classic card game where users aim to beat the dealer without going over 21.
-
Coin Management
- Users earn coins for winning games.
- Users lose coins for losing games.
- Coin balance is displayed and updated in real-time.
-
Game History and Statistics
- Track wins, losses, and overall coin balance.
- View history of games played.
- Frontend: React
- Backend: Node.js, Express
- Database: MongoDB
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/CodecoolGlobal/freestyle-mern-project-react-nagymengyireka.git
-
Navigate to the project directory:
-
Install dependencies for both client and server:
# For the server cd server npm install # For the client cd client npm install
-
Set up environment variables: Create a
.env
file in theserver
directory with the following contents:MONGO_URL=your_mongodb_connection_string
-
Run the project:
-
Start the server:
cd server npm start
-
Start the client:
cd client npm start
-
-
Open the application in your web browser:
- Register a new account or log in with existing credentials.
- Choose a game (High-Low or Blackjack) and start playing.
- Win or lose coins based on game outcomes.
- Add more casino games like Roulette, Poker, and Slots.
- Implement a leaderboard to show top players.
- Add social features like chat and friend lists.
- Enhance game mechanics and graphics.
- Implement a virtual store where users can buy items with coins.
- Make game history available for users to track.
- MongoDB for the database.
- Express for the backend framework.
- React for the frontend library.
- Node.js for the runtime environment.
- Deck of Cards API for the cards.