A React.js web application for managing leagues and teams JSON data with validation and image path verification.
- Upload and validate JSON files
- Edit league and team information
- Add/remove teams
- Validate image paths
- Save modified JSON data
- Real-time validation
- Modern, responsive UI
- Install dependencies:
npm install
- Create a
.env
file in the root directory with the following content:
VITE_ASSET_URL=https://d5gvige0osb8h.cloudfront.net/
- Start the development server:
npm run dev
- Build for production:
npm run build
- Preview production build:
npm run preview
The preview server will be available at http://localhost:4173
- Upload a JSON file using the file upload interface
- Edit league and team information:
- Modify IDs
- Toggle enabled/disabled status
- Update image paths
- Add/remove teams
- Save the modified JSON file
The application expects JSON files with the following structure:
{
"leagues": [
{
"id": "league_id",
"logo_image": "image_path",
"enabled": boolean,
"teams": [
{
"id": "team_id",
"logo_image": "image_path",
"enabled": boolean
}
]
}
]
}
Image paths (in the logo_image
field) must start with the URL specified in the VITE_ASSET_URL
environment variable. By default, this is set to https://d5gvige0osb8h.cloudfront.net/
.
Built with:
- React.js
- TypeScript
- TailwindCSS
- Ajv (JSON Schema Validator)
- Headless UI