Gi-Row is a web application that allows users to play games, with an initial focus on Ludo. The application features user authentication, AI opponents, and real-time gameplay.
- Ludo Game: Play the classic board game Ludo.
- AI Opponent: Play against an AI for a single-player experience.
- User Authentication: Secure user login and registration using Firebase.
- Real-time Updates: (If applicable, based on Firebase usage for game state)
- Responsive Design: (Assuming, as it's a modern web app)
- Frontend: React.js
- Backend Services: Firebase (Authentication, Firestore/Realtime Database for game state - assumption, confirm from code if possible)
- Styling: CSS
The project is organized as follows:
public/: Contains static assets and the mainindex.htmlfile.src/: Contains the main source code for the React application.ai/: Logic for game AI (e.g.,ludoAI.js).components/: Reusable UI components (e.g.,Navbar.js,Alert.js).config/: Configuration files, such as Firebase setup (firebase.js).context/: React context for state management (context.js).css/: CSS files for styling different parts of the application.games/: Core game logic (e.g.,Ludo.js).ludoComponents/: Components specific to the Ludo game.pages/: Top-level page components (e.g.,Home.js,Authenticate.js).
build/: Contains the production build of the application.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
- Clone the repository:
git clone https://github.com/thisisdkyadav/gamesapp cd Gi-Row - Install dependencies:
npm install
- Set up Firebase:
- Create a Firebase project at https://firebase.google.com/.
- Obtain your Firebase project configuration (apiKey, authDomain, etc.).
- Update the Firebase configuration in
src/config/firebase.jswith your project credentials. - Ensure your
.firebasercfile is configured correctly if you plan to use Firebase CLI for deployment.
- Run the application:
npm start