Spirit11 is an exciting fantasy cricket league developed for the *Inter-University Cricket Tournament, allowing users to create their dream teams from real university players, analyze statistics, and compete on the leaderboard. An AI-powered Spiriter Chatbot assists users in making smart team selections.
-
Fantasy Cricket League: Create and manage a team of 11 players.
-
Admin Panel: Manage player data, stats, and system logic.
-
Leaderboard: Compete against others based on team performance.
-
Budget Management: Users start with a budget of Rs.9,000,000.
-
Spiriter AI Chatbot: Provides insights and assists in team selection.
-
Real-Time Updates: Instant synchronization of player statistics.
-
Authentication System: Secure signup and login.
- Frontend: React
- Backend: Node.js with Express
- Database: MongoDB
- Chatbot: Flask (Python)
To get the admins view of the spirit11 you must first sign in as a normal user and change the role of that user in the user collection in mongo Atlas server under spirit11 manually and then log in using that account.
OR
Use the existing Admin account
Username: HarshaYohan
Password: HarshaYohan2002#
- Node.js
- npm or yarn
- MongoDB
- Python 3.x
-
Clone the repository:
git clone https://github.com/ThejithaR/SpiritX_5_Random_boys_02.git cd SpiritX_5_Random_boys_02 -
Install frontend dependencies:
cd client npm install -
Install backend dependencies:
cd server npm install4.Set up environment variables in .env:
MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key
5.Chatbot Setup:
cd spirit11\flask-server install flask and cors pip install flask pip install flask-cors python app.py
Gemini Key and connection string is in the backend
-
Install Flask dependencies for the chatbot:
cd chatbot pip install -r requirements.txt -
Run the application:
-
Start the client:
npm run dev
Make sure the client runs at http://localhost:5173
-
Start the server:
npm run server
-
Start the Flask chatbot:
python app.py
-
-
Open the application in your browser:
http://localhost:5173
- Fork the repository
- Create a new branch (
git checkout -b feature-xyz) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature-xyz) - Open a pull request