Backend: - Add RESTful API endpoints for games: GET, POST, PUT, DELETE /api/games - Implement GamesController for handling game operations - Validate game input using Zod - Create comprehensive tests for all endpoints Frontend: - Develop GameForm component for creating and editing games with validation - Create GameCard component for displaying game details - Implement custom hooks (useGames, useCreateGame, useUpdateGame, useDeleteGame) for data fetching and mutations - Build Games page with a responsive table for game management - Add unit tests for GameForm and Games page components Tests: - Ensure all backend and frontend tests pass successfully - Achieve 100% coverage for new features All changes are thoroughly tested and validated.
39 lines
992 B
JSON
39 lines
992 B
JSON
{
|
|
"name": "quasar-frontend",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"packageManager": "yarn@4.12.0",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"lint": "echo \"No lint configured\"",
|
|
"format": "prettier --write ."
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^3.3.0",
|
|
"@tanstack/react-query": "^4.34.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-hook-form": "^7.48.0",
|
|
"zod": "^3.22.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.0.0",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@testing-library/user-event": "^14.5.0",
|
|
"@types/react": "^18.2.21",
|
|
"@types/react-dom": "^18.2.7",
|
|
"@vitejs/plugin-react": "^4.0.0",
|
|
"autoprefixer": "^10.4.14",
|
|
"jsdom": "^22.1.0",
|
|
"postcss": "^8.4.24",
|
|
"tailwindcss": "^3.4.7",
|
|
"typescript": "^5.2.2",
|
|
"vite": "^5.1.0",
|
|
"vitest": "^0.34.1"
|
|
}
|
|
}
|