krishnaprasad45/Cricket11 — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me the server side for a fantasy cricket app where people can pick players, create an 11 player team, enter that team into a contest, and then see their points and rank after the real match result is added.

Users should be able to choose players by role, like wicket keeper, batter, all rounder, and bowler, with at least one from each type. They also need to choose a captain for double points and a vice captain for 1.5x points. Add the cricket scoring rules for batting, bowling, and fielding, including bonuses for runs, boundaries, wickets, catches, stumpings, run outs, and penalties like duck outs.

Use a TypeScript Node and Express backend with MongoDB. Please include sensible APIs for players, team creation, entering contests, submitting match results, calculating scores, and listing teams by rank. Add basic error handling, request logging, environment config, and keep the code clean and easy to run with npm start.

Want more depth? Deep Reverse