Skip to content

ThejithaR/SpiritX_5_Random_boys_02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

110 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpiritX_5_Random_boys_02


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.

Features

  • 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.

Technology Stack

  • Frontend: React
  • Backend: Node.js with Express
  • Database: MongoDB
  • Chatbot: Flask (Python)

Note !

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#

Installation

Prerequisites

  • Node.js
  • npm or yarn
  • MongoDB
  • Python 3.x

Steps

  1. Clone the repository:

    git clone https://github.com/ThejithaR/SpiritX_5_Random_boys_02.git
    cd SpiritX_5_Random_boys_02
  2. Install frontend dependencies:

    cd client
    npm install
  3. Install backend dependencies:

    cd server
    npm install

    4.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

  4. Install Flask dependencies for the chatbot:

    cd chatbot
    pip install -r requirements.txt
  5. 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
  6. Open the application in your browser:

    http://localhost:5173

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-xyz)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature-xyz)
  5. Open a pull request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors