Skip to content

Different approach applied for database, the previous one was faulty

Notifications You must be signed in to change notification settings

and-is/cricTeamAnother

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cricket Management System

Welcome to the Cricket Management System, a web application designed to manage cricket teams, player statistics, and match details with ease.

Table of Contents

Features

  • Team Management: Create and manage teams, assign coaches, and keep track of team performance.
  • Player Statistics: Record and view player statistics, including runs, wickets, and catches.
  • Match Details: Schedule matches, record scores, and determine match outcomes.

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine.

Prerequisites

Make sure you have the following installed:

  • Node.js
  • npm (Node Package Manager)
  • MySQL

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/cricket-management-system.git
    cd cricket-management-system
  2. Install dependencies:

    npm install
  3. Set up the database:

    • Create a MySQL database.
    • Update the database configuration in config/database.js.
  4. Run the application:

    npm start

Usage

  • Open your browser and navigate to http://localhost:5173 to view the application.
  • Use the interface to manage teams, players, and matches.

API Endpoints

Here are some of the key API endpoints:

  • Teams

    • POST /api/team: Create a new team.
    • GET /api/team: Get all teams.
    • PUT /api/team/:id: Update a team by ID.
    • DELETE /api/team/:id: Delete a team by ID.
  • Players

    • POST /api/player: Create a new player.
    • GET /api/player: Get all players.
    • PUT /api/player/:id: Update a player by ID.
    • DELETE /api/player/:id: Delete a player by ID.
  • Matches

    • POST /api/match: Create a new match.
    • GET /api/match: Get all matches.
    • PUT /api/match/:id: Update a match by ID.
    • DELETE /api/match/:id: Delete a match by ID.
  • Player Statistics

    • POST /api/stats: Create new player statistics.
    • GET /api/stats: Get all player statistics.
    • PUT /api/stats/:id: Update player statistics by ID.
    • DELETE /api/stats/:id: Delete player statistics by ID.
    • GET /api/stats/advanced/:id: Get advanced player statistics by Player ID.

Technologies Used

  • Frontend: React, Tailwind CSS
  • Backend: Node.js, Express.js
  • Database: MySQL

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

License

This project is licensed under the MIT License.

About

Different approach applied for database, the previous one was faulty

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages