A life simulation application that uses AI to help users compare different life choices and visualize their potential outcomes over a 10-year timeline.
- AI-Powered Life Simulations: Generate realistic 10-year projections for major life decisions
- Interactive Timeline Visualization: Explore simulation results with D3-powered data visualizations
- User Authentication: Secure login and profile management with Clerk
- Freemium Model: Free tier with 3 simulations per week, premium tier with unlimited access
- Payment Processing: Secure payments handled through Stripe integration
- Responsive Design: Modern React interface with smooth animations
- React
- Tailwind CSS
- D3.js
- Clerk
- Stripe.js
- Python (FastAPI)
- MongoDB
- Stripe
- Docker
- nginx
- Node.js 18+
- Python 3.8+
- MongoDB instance
- OpenRouter API key
- Stripe account
Create environment files:
Frontend (frontend/.env):
VITE_CLERK_PUBLISHABLE_KEY=your_clerk_key
VITE_API_URL=http://localhost:8000
VITE_STRIPE_PUBLISHABLE_KEY=your_stripe_keyBackend (backend/.env):
MONGODB_URI=your_mongodb_connection_string
OPENROUTER_API_KEY=your_openrouter_key
STRIPE_SECRET_KEY=your_stripe_secret_key
CLERK_SECRET_KEY=your_clerk_secret_key-
Clone the repository
git clone <repository-url> cd Parallax
-
Install frontend dependencies
cd frontend npm install -
Install backend dependencies
cd backend pip install -r requirements.txt -
Start development servers
Backend (runs on port 8000):
cd backend python server.pyFrontend (runs on port 3000):
cd frontend npm run dev
Run the comprehensive backend test suite:
python backend_test.pyThe test suite validates:
- API health endpoints
- MongoDB connectivity and SSL/TLS configuration
- AI simulation functionality with realistic data
- User simulation retrieval
- Stripe payment integration