A secure marketplace for buying and selling tickets for various events including concerts, transportation, sports events, and other entertainment.
- Secure ticket listing and purchasing
- User authentication and authorization
- Payment processing with escrow
- Fraud detection and ticket verification
- Rating and review system
- Real-time notifications
- Mobile-responsive design
- Backend: Node.js, Express.js, TypeScript
- Database: PostgreSQL, Redis
- Search: Elasticsearch
- Payment: Stripe
- File Storage: AWS S3
- Authentication: JWT
- Node.js 18+
- Docker and Docker Compose
- npm or yarn
This application includes a fix for "431 Request Header Fields Too Large" errors that can occur with large JWT tokens or cookies. The server is configured with increased header size limits (32KB instead of the default 8KB).
If you encounter 431 errors:
- Clear browser cookies and local storage
- Use the provided npm scripts which include the header size fix
- See Troubleshooting 431 Errors for detailed solutions
- Clone the repository
git clone <repository-url>
cd ticket-resell-platform- Install dependencies
npm install- Copy environment variables
cp .env.example .env- Start development services with Docker
npm run docker:up- Start the development server
npm run devThe application will be available at http://localhost:3000
npm run dev- Start development server with hot reloadnpm run build- Build the application for productionnpm run start- Start production servernpm run test- Run testsnpm run test:watch- Run tests in watch modenpm run test:coverage- Run tests with coverage reportnpm run lint- Run ESLintnpm run lint:fix- Fix ESLint errorsnpm run format- Format code with Prettiernpm run docker:up- Start Docker servicesnpm run docker:down- Stop Docker services
The development environment includes:
- PostgreSQL (port 5432) - Main database
- Redis (port 6379) - Caching and sessions
- Elasticsearch (port 9200) - Search functionality
src/
├── config/ # Configuration files
├── controllers/ # Route controllers
├── middleware/ # Express middleware
├── models/ # Data models
├── routes/ # API routes
├── services/ # Business logic
├── types/ # TypeScript type definitions
├── utils/ # Utility functions
└── test/ # Test setup and utilities
API documentation will be available at /api/docs when the server is running.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
MIT License