Skip to content

Next.js Cricket Score API - Simple PWA Web app and API to Get Live Cricket Score updates.

License

Notifications You must be signed in to change notification settings

sanwebinfo/next-cricket-score

Repository files navigation

Live Cricket Score

build-test

Next.js Cricket Score API - Simple PWA Web app and API to Get Live Cricket Score updates.

Next.js Cricket Score Web APP - Simple PWA Web app and API to Get Live Cricket Score updates.

API is not working due to the Cricbuzz Mobile site being Fully Redesigned - The full Site Structure was Changed it's a bit complex to get data - Please Consider using the Python Cricket API Version - https://github.com/sanwebinfo/cricket-api

Screenshot from 2023-09-09 18-09-44

This project is for Educational and Learning usage - all data credits go to Cricbuzz.com.

⚛ React + Next.js | 🌩 Vercel

Free Deploy

Deploy with Vercel

Features 🍔

  • React + Next JS
  • Tailwind CSS
  • Power Packed with React and Next Modules
  • Next JS API Router for fetch score data from API
  • PWA Support
  • Vercel cache Support
## Homepage - Get Live Score
http://localhost:3000

## Get Match Score by ID
http://localhost:3000/score?id=123456

proxy API 🍪

For more check - /app/proxy/live/route.js

http://localhost:3000/proxy/live
  • Get Live Score data by match id

For More Check - /app/proxy/match/[slug]/route.js

http://localhost:3000/proxy/match/53350
MATCH_API=https://yourapurl.com/score/live?id=

Installation 📦

  • Required node.js LTS version (18 or 20)
  • pnpm package manager
npm install -g pnpm
  • Clone this repo or Download
git clone https://github.com/sanwebinfo/next-cricket-score
cd next-cricket-score
pnpm install
  • Test the site
pnpm dev
  • Build the site
pnpm build
  • Test the production Build on Localhost
pnpm start

Contributing 🙌

Your PR's are Welcome

Disclaimer 🗃

  • This is not an Offical API from Cricbuzz - it's an Unofficial API
  • This is for Education Purposes only - use at your own risk on the Production Site

LICENSE ☑

MIT