A high-performance REST API for managing flash sales built with Node.js, Express, TypeScript, and MongoDB.
- Real-time inventory management
- Concurrency control to prevent over/under-purchasing
- Time-restricted sales
- Chronological leaderboard of purchases
- Authentication and authorization
- Rate limiting to prevent abuse
- Node.js 14+ and yarn
- MongoDB running locally or a MongoDB Atlas connection string
- Clone this repository
git clone https://github.com/polymathmode/flash-sale-api.git
cd flash-sale-api
yarn dev