Welcome to the Cricket Management System, a web application designed to manage cricket teams, player statistics, and match details with ease.
- 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.
Follow these instructions to get a copy of the project up and running on your local machine.
Make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
- MySQL
-
Clone the repository:
git clone https://github.com/your-username/cricket-management-system.git cd cricket-management-system
-
Install dependencies:
npm install
-
Set up the database:
- Create a MySQL database.
- Update the database configuration in
config/database.js
.
-
Run the application:
npm start
- Open your browser and navigate to
http://localhost:5173
to view the application. - Use the interface to manage teams, players, and matches.
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.
- Frontend: React, Tailwind CSS
- Backend: Node.js, Express.js
- Database: MySQL
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
This project is licensed under the MIT License.