A strategic digital collectible card game set in a multiverse where six unique factions battle for supremacy
Crisis Unleashed combines deep tactical combat with rich narrative elements, featuring hero-based gameplay, faction-specific mechanics, and blockchain integration for true digital ownership of cards and assets.
- Seven Unique Factions: Each with distinct mechanics and playstyles
- Solaris Nexus: Cybernetic Order (Divine + Technology)
- Umbral Eclipse: Shadow Tech (Darkness + Information)
- Aeonic Dominion: Time Architects
- Primordial Genesis: Bio-Titans
- Infernal Core: Techno-Demons
- Neuralis Conclave: Mind Over Matter
- Synthetic Directive: Perfect Optimization Systems
- Hero-Based Combat: Deploy legendary heroes with unique abilities
- Multi-Resource System: Energy and Momentum management
- Crisis Events: Dynamic battlefield modifiers
- Faction Synergies: Cross-faction strategies and combinations
- Progressive Upgrade System: Evolve your deck and heroes
- NFT Integration: True ownership of cards and heroes
- Cross-Chain Support: Etherlink (Ethereum/Tezos) and Solana
- Marketplace: Trade and collect rare assets
- Tournament Rewards: Earn exclusive digital collectibles
- Node.js >= 16.0.0
- pnpm >= 7.0.0
- Python 3.8+
-
Clone the repository
git clone https://github.com/yourusername/crisis-unleashed-app.git cd crisis-unleashed-app -
Install dependencies
pnpm install
-
Set up the backend
cd backend python -m venv .venv // Windows .venv\Scripts\Activate // macOS/Linux source .venv/bin/activate pip install -r requirements.txt cd ..
-
Start the development environment
pnpm start
This launches:
Frontend: [http://localhost:5173](http://localhost:5173) Backend API: [http://localhost:8000](http://localhost:8000) API Docs: [http://localhost:8000/docs](http://localhost:8000/docs)
- React 18 - Modern UI framework
- TypeScript - Type-safe development
- Vite - Lightning-fast build tool
- Tailwind CSS - Utility-first CSS framework
- Vitest - Fast unit testing
- React Router - Client-side routing
- FastAPI - High-performance Python API
- Pydantic - Data validation
- Uvicorn - ASGI server
- PostgreSQL - Primary database
- Redis - Session management
- Etherlink - Ethereum/Tezos integration
- Solana - High-performance blockchain
- Web3.js - Blockchain interactions
- pnpm - Fast, disk space efficient package manager
- Docker - Containerization
- GitHub Actions - CI/CD pipeline
- Prettier - Code formatting
- ESLint - Code linting
crisis-unleashed-app/
├── frontend/ # React application
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ │ ├── factions/ # Faction-specific components
│ │ │ ├── game/ # Game interface components
│ │ │ └── common/ # Shared components
│ │ ├── pages/ # Application pages
│ │ ├── features/ # Game features (battlefield, cards)
│ │ ├── types/ # TypeScript type definitions
│ │ ├── theme/ # Styling and faction themes
│ │ └── utils/ # Helper functions
│ ├── public/ # Static assets
│ └── scripts/ # Build and asset generation scripts
├── backend/ # FastAPI server
│ ├── server.py # Main application entry
│ ├── requirements.txt # Python dependencies
│ └── setup.ps1 # Development setup script
├── docs/ # Comprehensive game documentation
│ ├── factions/ # Faction guides and lore
│ ├── mechanics/ # Game system documentation
│ ├── heroes/ # Hero abilities and strategies
│ ├── cards/ # Card specifications
│ └── starter_decks/ # Pre-built deck guides
└── tests/ # End-to-end and integration tests
pnpm start- Start both frontend and backend in development modepnpm build- Build the frontend for productionpnpm test- Run all testspnpm lint- Lint all codepnpm format- Format code with Prettier
cd frontend
pnpm start # Start dev server (http://localhost:5173)
pnpm build # Build for production
pnpm test # Run tests with Vitest
pnpm lint # Run ESLintcd backend
# With activated virtual environment
python -m uvicorn server:app --reload # Start development server
python -m pytest # Run tests (when available)Each faction offers unique gameplay:
- Solaris Nexus: Predictive algorithms and energy manipulation
- Umbral Eclipse: Stealth mechanics and information warfare
- Aeonic Dominion: Time manipulation and board control
- Primordial Genesis: Growth systems and overwhelming force
- Infernal Core: High-risk/high-reward sacrifice mechanics
- Neuralis Conclave: Mind control and psychic abilities
- Synthetic Directive: Perfect optimization and mechanical precision
- Turn Structure: Draw → Energy → Main → Combat → End phases
- Resource Management: Energy and Momentum systems
- Hero Progression: Level up heroes and unlock abilities
- Crisis Integration: Dynamic events that change gameplay
# Frontend tests
cd frontend
pnpm test # Run all tests
pnpm test --watch # Watch mode
pnpm test --coverage # With coverage report
# Integration tests
pnpm test:integration # Full integration test suitepnpm lint # Check all files
pnpm lint:fix # Auto-fix issues
pnpm format # Format code
pnpm type-check # TypeScript checkingcd frontend
node scripts/generate-placeholder-assets.js # Generate game assetsComprehensive game documentation is available in the docs/ directory:
- Game Introduction - Overview and core concepts
- Game Rules - Complete ruleset and mechanics
- Faction System - Detailed faction guides
- Strategy Guide - Advanced tactics
- Hero Abilities - Hero guides and abilities
- Starter Decks - Pre-built deck recommendations
pnpm build # Build optimized frontend- Configure environment variables for production
- Backend health monitoring
HEALTHCHECK_TIMEOUT_SEC(default: 2)HEALTHCHECK_CB_THRESHOLD(default: 3)HEALTHCHECK_CB_COOLDOWN_SEC(default: 60)
- Cards API caching
CARDS_HTTP_CACHE_SEC(default: 60)CARDS_HTTP_SWR_SEC(default: 300)
- Backend health monitoring
- Set up database connections
- Configure blockchain network settings
- Deploy using your preferred hosting platform
- Frontend: Vercel, Netlify, or AWS S3 + CloudFront
- Backend: Railway, Heroku, or AWS ECS
- Database: PostgreSQL on AWS RDS, Google Cloud SQL, or similar
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
- Follow TypeScript best practices
- Use Prettier for formatting
- Write meaningful commit messages
- Add documentation for new features
This project is licensed under the MIT License - see the LICENSE file for details.
- Phase 1: Core gameplay implementation
- Phase 2: Multiplayer and ranking systems
- Phase 3: NFT marketplace integration
- Phase 4: Mobile app development
- Phase 5: Tournament and esports features
- Live Demo (when available)
- Documentation
- API Documentation (development)
- Discord Community (when available)
Crisis Unleashed - Where strategy meets the multiverse. Choose your faction, master your deck, and unleash chaos across dimensions.