Skip to content
nuvcaiPublic

About

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

231 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ† MiniFi - Financial Literacy for the Next Generation

Empowering Australian Teens (12-18) with AI-Powered Investment Education

A gamified investment education platform by Tick.AI that takes young learners on a journey through financial history, teaching real investment strategies through interactive missions and AI-powered coaching.

๐ŸŽฏ Project Overview

MiniFi is an innovative educational platform designed specifically for Australian teenagers aged 12-18. Players navigate through major financial events in history, make investment decisions, and learn from AI coaches while competing in real-time investment competitions.

Built for NextGen AI Hackathon 2025 by Tick.AI.

๐ŸŒŸ Key Features

  • ๐Ÿ“š Historical Financial Missions: Journey through 35+ years of financial history (1990-2025)
  • ๐Ÿค– AI-Powered Coaching: Personalized investment advice teaching family office strategies
  • ๐Ÿ“Š Real-Time Trading Simulation: Practice with virtual capital
  • ๐Ÿ† Competitive Leaderboards: Compete with players globally
  • ๐Ÿ“ˆ Advanced Analytics: Performance charts and risk analysis
  • ๐ŸŽฎ Gamified Learning: XP system, achievements, and progressive unlocking
  • ๐ŸŽ Real Rewards System: Exchange XP for Australian brand gift cards
  • ๐Ÿ“ฑ Mobile-First Design: Optimized for all devices

๐Ÿ†• Latest Features (v1.2)

  • ๐ŸŽฏ Crisis-Based Learning: Mission flow aligned with "learning through crisis" philosophy
  • ๐Ÿ’Ž High Conviction Investing: Celebrate bold decisions and quick failures as growth
  • ๐Ÿง  Emotional Intelligence: Loss results show "Wisdom Earned" with learning-focused messaging
  • ๐Ÿ“ฑ Mobile-First UX: Bottom sheet modals, 44px touch targets, bottom navigation
  • ๐ŸŽฎ Enhanced Gamification:
    • Knowledge Quiz after missions
    • What-If Analysis for exploring alternate outcomes
    • Points System with Flybuys-style rewards
    • League System for competitive progression
    • Investor Journey with milestone tracking
  • ๐ŸŽฒ Infinite Gameplay: Random scenario generation after completing historical missions
  • ๐Ÿ“Š Asset Class System: 6 distinct asset classes with FO-aligned categorization
  • ๐ŸŽ“ FO Certification Path: Capital Guardian โ†’ Balanced Investor โ†’ FO Fellow

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • Python 3.8+
  • npm or yarn
  • Git

1. Clone the Repository

git clone git@gitlab.com:tick.ai/minifi.git
cd minifi

2. Environment Setup

Create a .env.local file in the root directory:

# Backend API URL
NEXT_PUBLIC_API_URL=http://localhost:8000

# OpenAI API Key (for AI Coach functionality)
OPENAI_API_KEY=your_openai_api_key_here

3. Install Dependencies

Frontend:

npm install

Backend:

cd backend
pip install -r requirements.txt
cd ..

4. Start the Application

Start Backend:

cd backend
./start_backend.sh

Start Frontend (in a new terminal):

npm run dev

5. Access the Application

๐ŸŽฎ How to Play

1. Historical Missions

  • Start with the Japanese Bubble Economy (1990)
  • Complete missions chronologically to unlock new events
  • Make investment decisions based on historical context
  • Learn from AI coaches about market dynamics

2. Investment Competition

  • Unlock after completing all historical missions
  • Allocate your starting capital across various assets
  • Choose from 4 specialized AI coaches
  • Trade in real-time with market simulation

3. Performance Tracking

  • View detailed performance charts
  • Analyze risk metrics (Sharpe ratio, volatility, max drawdown)
  • Compare your results with global leaderboards
  • Earn XP and achievements

๐Ÿ—๏ธ Architecture

Frontend (React/Next.js)

  • Framework: Next.js 15 with TypeScript
  • UI Components: shadcn/ui with Tailwind CSS
  • Charts: Recharts for data visualization
  • State Management: React hooks and context

Backend (FastAPI)

  • Framework: FastAPI with Python
  • Database: SQLite with thread-safe connections
  • AI Integration: OpenAI API (GPT-4o-mini) for coaching
  • Caching: 1-hour TTL for price data (10x performance boost)

Key Components

components/
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ missions.ts          # Historical missions with asset class metadata
โ”‚   โ”œโ”€โ”€ coaches.ts           # AI coach profiles with FO strategies
โ”‚   โ”œโ”€โ”€ assetClasses.ts      # Comprehensive asset class reference
โ”‚   โ”œโ”€โ”€ randomScenarios.ts   # Procedural scenario generation
โ”‚   โ””โ”€โ”€ events.ts            # Financial events data
โ”œโ”€โ”€ features/
โ”‚   โ”œโ”€โ”€ UpcomingFeatures.tsx # Coming soon feature teasers
โ”‚   โ”œโ”€โ”€ AssetClassMastery.tsx # Asset class progress tracking
โ”‚   โ”œโ”€โ”€ RiskSpectrum.tsx     # Risk/return visualization
โ”‚   โ””โ”€โ”€ FOCertificationTeaser.tsx # Certification path preview
โ”œโ”€โ”€ mission/
โ”‚   โ”œโ”€โ”€ MissionIntro.tsx     # Crisis โ†’ Challenge โ†’ Conviction flow
โ”‚   โ”œโ”€โ”€ InvestmentDecision.tsx # High conviction investment choice
โ”‚   โ”œโ”€โ”€ InvestmentThesis.tsx # Document reasoning before decisions
โ”‚   โ”œโ”€โ”€ MissionResult.tsx    # Wisdom-focused results (wins & learning)
โ”‚   โ”œโ”€โ”€ KnowledgeQuiz.tsx    # Post-mission comprehension validation
โ”‚   โ””โ”€โ”€ WhatIfAnalysis.tsx   # Explore alternate outcomes
โ”œโ”€โ”€ gamification/
โ”‚   โ”œโ”€โ”€ InvestorJourney.tsx  # Visual milestone progression
โ”‚   โ”œโ”€โ”€ LeagueSystem.tsx     # Competitive tier rankings
โ”‚   โ”œโ”€โ”€ RewardsStore.tsx     # XP redemption marketplace
โ”‚   โ”œโ”€โ”€ FlybuysRewards.tsx   # Partner rewards integration
โ”‚   โ”œโ”€โ”€ SavingsVault.tsx     # Goal-based savings game
โ”‚   โ”œโ”€โ”€ StakingCard.tsx      # XP staking for bonuses
โ”‚   โ””โ”€โ”€ pointsSystem.ts      # Points calculation utilities
โ”œโ”€โ”€ shared/
โ”‚   โ””โ”€โ”€ MobileBottomNav.tsx  # Fixed mobile navigation
โ”œโ”€โ”€ ui/
โ”‚   โ””โ”€โ”€ dialog.tsx           # Bottom sheet modal variants
โ”œโ”€โ”€ PerformanceChart.tsx     # Investment performance visualization
โ”œโ”€โ”€ AICoach.tsx              # AI coaching interface
โ”œโ”€โ”€ trading-dashboard.tsx    # Real-time trading with asset classes
โ””โ”€โ”€ competition-results.tsx  # Results and leaderboards

backend/
โ”œโ”€โ”€ main.py                  # FastAPI application
โ”œโ”€โ”€ models.py               # Pydantic data models
โ”œโ”€โ”€ database.py             # Database management
โ””โ”€โ”€ services/               # Business logic services
    โ”œโ”€โ”€ coach_service.py    # AI coaching (family office approach)
    โ”œโ”€โ”€ coach_chat.py       # Real-time chat
    โ”œโ”€โ”€ price_service.py    # Yahoo Finance price data
    โ””โ”€โ”€ investment_metrics_service.py # Historical performance

๐ŸŽฏ AI Coaching - Family Office Approach

MiniFi teaches teens to invest like wealthy families:

Core Philosophy

  • Reward Effort over outcomes
  • Explore Asset Classes (stocks, bonds, ETFs, crypto, REITs, commodities)
  • Think Long-Term like family offices managing multi-generational wealth
  • Diversify Strategically across 4-6+ asset classes

AI Coach Personalities

Steady Sam (Conservative) ๐Ÿ›ก๏ธ

  • Focus: Capital preservation, defensive assets
  • Language: "Steady as she goes," "Family offices think in generations"
  • Teaches: Bonds, gold, dividend stocks, REITs

Wise Wendy (Balanced) โš–๏ธ

  • Focus: Strategic allocation, risk-adjusted returns
  • Language: "Balance is key," "Diversification protects"
  • Teaches: Mixed portfolios, asset correlations

Adventure Alex (Aggressive) ๐Ÿš€

  • Focus: Growth opportunities, calculated risks
  • Language: "Go big," "Innovation pays off"
  • Teaches: Growth stocks, crypto, emerging markets

Tech Taylor (Technology) ๐Ÿ’ป

  • Focus: Tech-focused diversification
  • Language: "Focus on the future," "Innovation drives wealth"
  • Teaches: AI, cloud, semiconductors

๐Ÿ“Š Performance Metrics

  • Total Return: Overall portfolio performance
  • Sharpe Ratio: Risk-adjusted returns
  • Volatility: Portfolio risk measurement
  • Max Drawdown: Maximum loss from peak
  • Annualized Return: Yearly performance rate
  • Asset Class Exploration: Track diversification progress

๐Ÿš€ Recent Updates

v1.2.0 - Crisis Learning & Mobile UX Update (December 2025)

  • โœ… Philosophy-Aligned Mission Flow: "Crisis Mode" โ†’ "High Conviction" โ†’ "Wisdom Earned"
  • โœ… Learning from Failures: Losses celebrated as growth opportunities with violet confetti
  • โœ… Mobile Bottom Navigation: Fixed nav bar with safe area support
  • โœ… Bottom Sheet Modals: Native mobile dialog experience
  • โœ… Enhanced Touch Targets: All interactive elements meet 44px minimum
  • โœ… Knowledge Quiz: Post-mission comprehension validation
  • โœ… What-If Analysis: Explore alternate investment outcomes
  • โœ… Points System: Flybuys-style rewards with tier progression
  • โœ… Rewards Store: Redeem XP for rewards and perks
  • โœ… League System: Competitive rankings (Bronze โ†’ Diamond)
  • โœ… Investor Journey: Visual milestone progression tracker
  • โœ… Random Scenarios: Infinite gameplay with procedurally generated events
  • โœ… Homepage Mobile Menu: Hamburger navigation with responsive typography

v1.1.0 - Asset Class & Financial Literacy Update (December 2025)

  • โœ… Asset Class System: 6 FO-aligned asset classes with full metadata
  • โœ… Risk/Return Profiles: Volatility, correlation, and FO allocation ranges
  • โœ… Time Horizon Guidance: Short/Medium/Long investment recommendations
  • โœ… Asset Class Mastery UI: Track progress across all asset classes
  • โœ… FO Certification Teaser: 3-level certification path preview
  • โœ… Risk Spectrum Visualization: Interactive risk/return chart component

v1.0.0 - Family Office Edition

  • โœ… AI Coach rewards effort and exploration
  • โœ… Backend caching (10x faster price data)
  • โœ… Mobile-optimized UI
  • โœ… Comprehensive documentation

๐Ÿ—บ๏ธ Product Roadmap

Current: v1.2 (December 2025)

Crisis Learning & Mobile UX Update

Feature Status Description
Historical Missions โœ… Complete 6 major financial events (1990-2025)
AI Coach System โœ… Complete 4 FO-aligned coaches with strategies
Trading Simulation โœ… Complete Real-time portfolio with asset classes
Performance Analytics โœ… Complete Real Yahoo Finance data integration
Mobile-First UI โœ… Complete Bottom nav, bottom sheets, 44px targets
Leaderboards โœ… Complete Global competition rankings
Crisis-Based Learning โœ… Complete Philosophy-aligned mission flow
Knowledge Quiz โœ… Complete Post-mission comprehension checks
What-If Analysis โœ… Complete Explore alternate outcomes
Points & Rewards โœ… Complete Flybuys-style points system
League System โœ… Complete Competitive tier progression
Investor Journey โœ… Complete Visual milestone tracker
Random Scenarios โœ… Complete Infinite procedural gameplay

v1.2 - Interactive Features (Q1 2026)

Engaging Learning Tools

Feature Priority Description
๐ŸŽฏ Risk Profile Quiz High Personalized coach matching
๐Ÿ“Š Portfolio Builder High Drag-drop portfolio construction
๐ŸŽฒ Risk Roulette High Daily prediction mini-game
๐ŸŽ“ FO Certification High 3-level credential system
โฑ๏ธ Time Horizon Challenges Medium Goal-matching gameplay
๐Ÿ“ˆ Asset Comparison Tool Medium Side-by-side analysis

v1.3 - Enhanced Learning (Q2 2026)

Deepening Educational Impact

Feature Priority Description
๐Ÿ“š Extended Missions High Expand to 20+ historical events
๐Ÿง  Adaptive Difficulty High AI-adjusted challenges based on skill
๐Ÿ“Š Learning Analytics High Track knowledge gaps & progress
๐ŸŽฏ Micro-Lessons Medium Bite-sized financial concepts
๐Ÿ… Achievement System Medium Badges for milestones & exploration
๐ŸŒ ASX Integration Medium Real Australian market data

v1.2 - Social & Gamification (Q2 2026)

Building Community

Feature Priority Description
๐Ÿ‘ฅ Friend Competitions High Challenge friends, private leagues
๐Ÿ’ฌ Social Feed High Share achievements, strategies
๐Ÿซ Classroom Mode High Teacher dashboards, class competitions
๐ŸŽ Rewards Marketplace Medium Australian brand gift cards (Woolworths, JB Hi-Fi)
๐Ÿ“ฑ Push Notifications Medium Market alerts, challenge reminders
๐Ÿค Mentorship Pairing Low Connect beginners with advanced users

v1.3 - Advanced Trading (Q3 2026)

Professional-Grade Features

Feature Priority Description
๐Ÿ“ˆ Advanced Charts High Candlesticks, technical indicators
โšก Options Trading Sim High Learn derivatives safely
๐Ÿ”„ Auto-Rebalancing Medium Portfolio optimization suggestions
๐Ÿ“‰ Short Selling Sim Medium Understand market mechanics
๐ŸŒ Global Markets Medium US, UK, Asian market simulations
๐Ÿค– AI Strategy Builder Low Create & backtest custom strategies

v2.0 - Platform Expansion (Q4 2026)

Scaling Impact

Feature Priority Description
๐Ÿ“ฑ Native Mobile Apps High iOS & Android with offline mode
๐Ÿฆ Real Micro-Investing High Connect to real brokerage (supervised)
๐ŸŽ“ School Curriculum API High LMS integration for educators
๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง Parent Portal Medium Progress tracking, parental controls
๐ŸŒ APAC Expansion Medium Localized for Singapore, NZ, HK
๐Ÿ† National Competitions Medium School vs school tournaments

v3.0 - AI Evolution (2027)

Next-Gen Intelligence

Feature Vision Description
๐Ÿง  Personalized AI Tutors Planned Custom AI trained on user learning style
๐ŸŽฎ VR Trading Floor Planned Immersive market experience
๐Ÿ”ฎ Predictive Analytics Planned AI-powered market scenario modeling
๐ŸŒ Global Launch Planned Multi-language, multi-currency
๐Ÿ“œ Certification Program Planned Industry-recognized credentials
๐Ÿค Fintech Partnerships Planned Bank & broker integrations

๐Ÿ“Š Success Metrics & KPIs

Metric v1.0 Target v2.0 Target
Active Users 1,000 50,000
School Partnerships 5 200
Mission Completion Rate 70% 85%
Financial Literacy Improvement 40% 60%
User Retention (30-day) 35% 55%
NPS Score 40+ 60+

๐ŸŽฏ Strategic Priorities

  1. Education First: Every feature must have measurable learning outcomes
  2. Teen-Centric Design: UI/UX optimized for Gen Z engagement patterns
  3. AI-Native: Leverage AI throughout, not as an afterthought
  4. Australian Focus: Local market context, brands, and regulations
  5. Responsible Growth: Build trust with parents, schools, regulators

๐Ÿ“š Documentation

๐Ÿงช Testing

Run the test suite:

./test_updates.sh

Expected output:

โœ… All Python files have valid syntax
โœ… Core backend files present
โœ… Documentation created

๐Ÿš€ Deployment

Production Build

# Build frontend
npm run build

# Set production environment variables
NEXT_PUBLIC_API_URL=https://your-api-domain.com
OPENAI_API_KEY=your_production_api_key

# Start production server
npm start

Environment Variables

Variable Description Required
NEXT_PUBLIC_API_URL Backend API URL Yes
OPENAI_API_KEY OpenAI API key for AI coaching Yes

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Merge Request

๐Ÿ“„ License

Private - NextGen AI Hackathon 2025

๐ŸŽ‰ Acknowledgments

  • Built by: Tick.AI
  • For: NextGen AI Hackathon 2025
  • Target: Australian teenagers aged 12-18
  • Powered by: OpenAI GPT-4o-mini
  • Inspired by: Real financial market events and family office strategies

Start your investment journey today with MiniFi! ๐Ÿš€๐Ÿ’ฐ

Empowering the next generation of investors through AI-powered education.

About

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages