A modern web-based gaming platform built with Flask, featuring multiple games, leaderboards, and browser automation testing capabilities.
pastimes/
โโโ app.py # Main Flask application
โโโ website/ # Core web application
โ โโโ home/ # Homepage and game listings
โ โโโ dino_runner/ # Dino Runner game
โ โโโ time_predict/ # Time Predict game
โ โโโ space_invaders/ # Space Invaders game
โ โโโ react_time/ # React Time game
โ โโโ leaderboard/ # Leaderboard system
โ โโโ test_home/ # Test layout components
โ โโโ static/ # CSS, JS, and assets
โโโ docs/ # Documentation
โ โโโ mcp/ # MCP (Model Context Protocol) docs
โ โโโ admin/ # Admin system documentation
โ โโโ development/ # Development guides
โโโ scripts/ # Utility scripts
โ โโโ mcp/ # MCP server scripts
โโโ tests/ # Test files
โโโ requirements.txt # Python dependencies
โโโ requirements-dev.txt # Development dependencies
โโโ package.json # Node.js dependencies
โโโ setup-dev.py # Development setup script
- Python 3.8+
- Node.js 16+
- Git
-
Clone the repository:
git clone <repository-url> cd pastimes
-
Set up Python environment:
python -m venv .venv .venv\Scripts\activate # Windows pip install -r requirements.txt pip install -r requirements-dev.txt
-
Set up Node.js dependencies:
npm install
-
Initialize the database:
python setup-dev.py
-
Start the application:
python app.py
The application will be available at http://localhost:5000
- Dino Runner: Classic endless runner game
- Time Predict: Test your timing skills
- Space Invaders: Classic arcade game
- React Time: Reaction time testing game
- Real-time leaderboards
- Score tracking
- Session management
- Responsive design
The project includes browser automation testing using both Playwright and Puppeteer MCP servers.
Start MCP servers:
# Start both servers
.\scripts\mcp\start-both-mcp.ps1
# Or start individually
.\scripts\mcp\start-playwright-mcp.ps1
.\scripts\mcp\start-puppeteer-mcp.ps1
Test MCP setup:
python tests/test-puppeteer-mcp.py
Using npm scripts:
npm run mcp:playwright # Start Playwright MCP
npm run mcp:puppeteer # Start Puppeteer MCP
npm run mcp:test # Test both servers
python tests/test_app.py
python setup-dev.py
This script will:
- Install development dependencies
- Set up pre-commit hooks
- Initialize the database
- Create development scripts
npm run quality # Run all quality checks
npm run lint # Run linting
npm run format # Format code
npm run type-check # Type checking
# Access admin panel
http://localhost:5000/admin/summerlockin
# Database cleanup
http://localhost:5000/admin/summerlockin/cleanup
docs/mcp/MCP_SETUP_COMPLETE.md
- Complete MCP setup guidedocs/mcp/PUPPETEER_MCP_SETUP.md
- Puppeteer MCP guidedocs/mcp/PLAYWRIGHT_MCP_SETUP.md
- Playwright MCP guide
docs/admin/SESSION_ADMIN_GUIDE.md
- Session admin guidedocs/admin/SIMPLE_ADMIN_GUIDE.md
- Simple admin guidedocs/admin/TEST_ADMIN_SYSTEM.md
- Admin system testingdocs/admin/DATABASE_CLEANUP.md
- Database cleanup guide
docs/development/01-layout-visuals.md
- Layout and visual designdocs/development/02-animations-interactions.md
- Animations and interactionsdocs/development/03-complex-features.md
- Complex featuresdocs/development/CLAUDE.md
- Claude integration guide
docs/mcp/mcp.json
- Main MCP configurationdocs/mcp/mcp-servers.json
- Server connection configdocs/mcp/playwright-mcp-config.json
- Playwright settingsdocs/mcp/puppeteer-mcp-config.json
- Puppeteer settings
Create a .env
file for local development:
FLASK_ENV=development
FLASK_DEBUG=1
SECRET_KEY=your-secret-key-here
- Set environment variables
- Install production dependencies
- Set up database
- Configure web server (nginx/apache)
- Use gunicorn or uwsgi for WSGI
Docker configuration will be added for containerized deployment.
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and quality checks
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For issues and questions:
- Check the documentation in the
docs/
directory - Review existing issues
- Create a new issue with detailed information
SummerLockIn Development Team - Building the future of web gaming! ๐ฎ