{"id":51169465,"url":"https://github.com/thecoderdream/ngaming-bulten","last_synced_at":"2026-06-26T23:03:27.122Z","repository":{"id":360154699,"uuid":"1248936961","full_name":"TheCoderDream/ngaming-bulten","owner":"TheCoderDream","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-25T08:16:35.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T09:24:32.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCoderDream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T07:32:09.000Z","updated_at":"2026-05-25T08:16:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TheCoderDream/ngaming-bulten","commit_stats":null,"previous_names":["thecoderdream/ngaming-bulten"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TheCoderDream/ngaming-bulten","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderDream%2Fngaming-bulten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderDream%2Fngaming-bulten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderDream%2Fngaming-bulten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderDream%2Fngaming-bulten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCoderDream","download_url":"https://codeload.github.com/TheCoderDream/ngaming-bulten/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderDream%2Fngaming-bulten/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34835782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-26T23:03:20.789Z","updated_at":"2026-06-26T23:03:27.105Z","avatar_url":"https://github.com/TheCoderDream.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nesine Bulletin Case Study\n\nReact + Webpack + TypeScript bulletin app that renders ~3000 events from static JSON with virtualized scrolling and click-to-add coupon (sepet).\n\n## Run\n\n```bash\nnpm install\nnpm run dev      # http://localhost:3000\nnpm run build\nnpm run lint\nnpm run typecheck\n```\n\n## Architecture\n\n- **Data**: `public/nesine-data.json` served as static file (`fetch('/nesine-data.json')`)\n- **Bulletin**: `@tanstack/react-virtual` renders only visible rows (~15–25 at a time)\n- **Coupon**: React Context + reducer keyed by event code (one selection per match); total = product of odds × 1 TL\n- **Styling**: SCSS Modules + BEM conventions\n\n## Key decisions\n\n| Decision | Choice | Why |\n|----------|--------|-----|\n| Research backend | Static JSON in `/public` | Case study simplicity; no server process |\n| Row virtualization | `@tanstack/react-virtual` | 3k rows without pagination |\n| Selection state | Context API + split state/actions | Actions stable; selection updates isolated |\n| Stake | Fixed 1 TL | Matches reference screenshots |\n| Column layout | Full bulletin columns; empty cells where JSON has no data | Groups 1, 2, 5 only in dataset |\n\n## Project structure\n\n```\nsrc/\n  app/           App shell, providers\n  features/\n    bulletin/    Fetch, normalize, virtualized table\n    coupon/      Store, panel, total calculation\n  shared/        OddCell, Skeleton, utils\n  styles/        Global tokens, mixins, reset\npublic/\n  nesine-data.json\n```\n\n## Performance\n\nMeasured locally (3000 events, ~2.6MB JSON):\n\n| Step | Time |\n|------|------|\n| JSON parse | ~45ms |\n| Normalize to indexed cells | ~16ms |\n| **Total data ready** | **~60ms** |\n\nRendering uses `@tanstack/react-virtual` — only ~15–25 rows in DOM at once.\n\n## Deploy to Netlify\n\n1. Push this repo to GitHub.\n2. In [Netlify](https://app.netlify.com): **Add new site** → **Import from Git**.\n3. Build settings (also in `netlify.toml`):\n   - **Build command:** `npm run build`\n   - **Publish directory:** `dist`\n   - **Node version:** 20\n4. Deploy.\n\n`public/nesine-data.json` and `_redirects` are copied into `dist` on build so `/nesine-data.json` works in production.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecoderdream%2Fngaming-bulten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecoderdream%2Fngaming-bulten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecoderdream%2Fngaming-bulten/lists"}