|
| 1 | +{ |
| 2 | + "id": "vite-react-starter", |
| 3 | + "version": "1.0.0", |
| 4 | + "title": "Vite + React: first application", |
| 5 | + "description": "Build a small storefront-style app in incremental GitCourse lessons.", |
| 6 | + "language": "typescript", |
| 7 | + "sections": [ |
| 8 | + { |
| 9 | + "id": "setup", |
| 10 | + "title": "Project setup", |
| 11 | + "description": "Validate the starter toolchain and basic app structure.", |
| 12 | + "lessons": [ |
| 13 | + { |
| 14 | + "id": "001", |
| 15 | + "title": "Clone and run", |
| 16 | + "objective": "Install dependencies and boot the app locally.", |
| 17 | + "ask_context": "The student is preparing the Vite + React repository and validating the local toolchain.", |
| 18 | + "hints": [ |
| 19 | + "Run npm install first.", |
| 20 | + "Use npm run build to validate CI readiness." |
| 21 | + ], |
| 22 | + "checklist": [ |
| 23 | + { |
| 24 | + "id": "node_modules", |
| 25 | + "label": "Dependencies are installed", |
| 26 | + "verify": "dir_exists:node_modules" |
| 27 | + }, |
| 28 | + { |
| 29 | + "id": "build_ok", |
| 30 | + "label": "The production build passes", |
| 31 | + "verify": "build_succeeds:npm run build" |
| 32 | + } |
| 33 | + ] |
| 34 | + }, |
| 35 | + { |
| 36 | + "id": "002", |
| 37 | + "title": "Create the header", |
| 38 | + "objective": "Add a reusable Header component with navigation links.", |
| 39 | + "ask_context": "The student is creating the first presentational React component.", |
| 40 | + "hints": [ |
| 41 | + "Create src/components/Header.tsx.", |
| 42 | + "Use semantic nav markup." |
| 43 | + ], |
| 44 | + "checklist": [ |
| 45 | + { |
| 46 | + "id": "header_component", |
| 47 | + "label": "Header component exists", |
| 48 | + "verify": "file_exists:src/components/Header.tsx" |
| 49 | + }, |
| 50 | + { |
| 51 | + "id": "header_nav", |
| 52 | + "label": "Header includes navigation markup", |
| 53 | + "verify": "file_contains:src/components/Header.tsx:nav" |
| 54 | + } |
| 55 | + ] |
| 56 | + }, |
| 57 | + { |
| 58 | + "id": "003", |
| 59 | + "title": "Add routing", |
| 60 | + "objective": "Prepare Home, About, and Catalog pages with react-router.", |
| 61 | + "ask_context": "The student is introducing client-side routing into the starter app.", |
| 62 | + "hints": [ |
| 63 | + "Install react-router-dom when you are ready.", |
| 64 | + "Keep pages simple at first." |
| 65 | + ], |
| 66 | + "checklist": [ |
| 67 | + { |
| 68 | + "id": "router_dependency", |
| 69 | + "label": "react-router-dom is referenced in package.json", |
| 70 | + "verify": "file_contains:package.json:react-router-dom" |
| 71 | + }, |
| 72 | + { |
| 73 | + "id": "router_usage", |
| 74 | + "label": "App.tsx uses routing components", |
| 75 | + "verify": "file_contains:src/App.tsx:BrowserRouter" |
| 76 | + } |
| 77 | + ] |
| 78 | + } |
| 79 | + ] |
| 80 | + }, |
| 81 | + { |
| 82 | + "id": "catalog", |
| 83 | + "title": "Catalog experience", |
| 84 | + "description": "Build a small catalog view with data and styles.", |
| 85 | + "lessons": [ |
| 86 | + { |
| 87 | + "id": "004", |
| 88 | + "title": "Catalog page with mock data", |
| 89 | + "objective": "Render a list of products or course cards from mock data.", |
| 90 | + "ask_context": "The student is building the first list page and shaping mock data for rendering.", |
| 91 | + "hints": [ |
| 92 | + "Keep the mock data local first.", |
| 93 | + "Use map() to render cards." |
| 94 | + ], |
| 95 | + "checklist": [ |
| 96 | + { |
| 97 | + "id": "catalog_data", |
| 98 | + "label": "Catalog page contains mock data", |
| 99 | + "verify": "file_contains:src/App.tsx:Catalog" |
| 100 | + } |
| 101 | + ] |
| 102 | + }, |
| 103 | + { |
| 104 | + "id": "005", |
| 105 | + "title": "Fetch JSON data", |
| 106 | + "objective": "Load data from a local JSON source or stub API.", |
| 107 | + "ask_context": "The student is replacing inline mock data with a fetch-based data source.", |
| 108 | + "hints": [ |
| 109 | + "Use useEffect for the first fetch.", |
| 110 | + "Handle loading and error states." |
| 111 | + ], |
| 112 | + "checklist": [ |
| 113 | + { |
| 114 | + "id": "fetch_usage", |
| 115 | + "label": "The app uses fetch()", |
| 116 | + "verify": "file_contains:src/App.tsx:fetch(" |
| 117 | + } |
| 118 | + ] |
| 119 | + }, |
| 120 | + { |
| 121 | + "id": "006", |
| 122 | + "title": "Tailwind styling", |
| 123 | + "objective": "Apply responsive layout and dark mode friendly UI.", |
| 124 | + "ask_context": "The student is improving the layout and visual hierarchy with Tailwind.", |
| 125 | + "hints": [ |
| 126 | + "Use grid utilities for the catalog.", |
| 127 | + "Keep spacing consistent." |
| 128 | + ], |
| 129 | + "checklist": [ |
| 130 | + { |
| 131 | + "id": "tailwind_classes", |
| 132 | + "label": "Tailwind utility classes were added to the app", |
| 133 | + "verify": "file_contains:src/App.tsx:grid" |
| 134 | + } |
| 135 | + ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "id": "007", |
| 139 | + "title": "Production build", |
| 140 | + "objective": "Prepare the app for release and preview the result.", |
| 141 | + "ask_context": "The student is validating the final production build and preview flow.", |
| 142 | + "hints": [ |
| 143 | + "The build should stay green after all previous changes.", |
| 144 | + "Use npm run preview to inspect the final bundle." |
| 145 | + ], |
| 146 | + "checklist": [ |
| 147 | + { |
| 148 | + "id": "final_build", |
| 149 | + "label": "The final build passes", |
| 150 | + "verify": "build_succeeds:npm run build" |
| 151 | + } |
| 152 | + ] |
| 153 | + } |
| 154 | + ] |
| 155 | + } |
| 156 | + ] |
| 157 | +} |
0 commit comments