A modern web application for generating personalized Human Design charts with a clean, minimalist interface.
chart-generator/
├── frontend/ # Next.js frontend application
│ ├── app/ # Next.js app directory
│ ├── components/ # React components
│ ├── services/ # API client services
│ ├── types/ # TypeScript type definitions
│ ├── utils/ # Utility functions and constants
│ └── styles/ # Global styles
├── backend/ # FastAPI backend application
│ ├── src/ # Python source code
│ │ ├── api/ # API routes
│ │ ├── models/ # Pydantic models
│ │ ├── services/ # Business logic services
│ │ └── main.py # FastAPI application entry point
│ └── requirements.txt
└── contracts/ # API contracts (OpenAPI spec)
- Framework: Next.js 14+ with App Router
- Language: TypeScript
- Styling: Tailwind CSS
- Deployment: Vercel
- Framework: FastAPI
- Language: Python 3.11+
- Database: PostgreSQL (optional for MVP)
- Deployment: Railway
- Node.js 18+ and npm
- Python 3.11+
- PostgreSQL (optional for MVP)
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Create environment file:
# .env.local is already configured- Run the development server:
npm run devThe frontend will be available at http://localhost:3000
- Navigate to the backend directory:
cd backend- Create a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create environment file:
cp .env.example .env
# Edit .env with your configuration- Run the development server:
python3 src/main.py
# Or: uvicorn src.main:app --reload --host 0.0.0.0 --port 5000The backend will be available at http://localhost:5000
- API Documentation: http://localhost:5000/docs
- Connect your GitHub repository to Vercel
- Set environment variable:
NEXT_PUBLIC_API_URLto your Railway backend URL - Deploy automatically on push to main branch
- Connect your GitHub repository to Railway
- Set environment variables as needed (see .env.example)
- Deploy automatically on push to main branch
NEXT_PUBLIC_API_URL: Backend API URL (e.g., https://your-backend.railway.app)
DATABASE_URL: PostgreSQL connection string (optional for MVP)HD_API_KEY: Human Design API key (or leave as placeholder for mock data)HD_API_URL: Human Design API endpointFRONTEND_URL: Frontend URL for CORSDEBUG: Set to "false" in productionPORT: Railway will set this automatically
- ✅ Chart generation from birth data
- ✅ Display of Type, Authority, Profile
- ✅ Visual Bodygraph with defined/open centers
- ✅ Channels and Gates display
- ✅ Incarnation Cross
- ✅ Personalized impulse message
- ✅ Email capture for Business Reading interest
- ✅ German language interface
- ✅ Mobile-responsive design
- ✅ Form validation with German error messages
- ✅ API error handling with retry capability
The backend API documentation is available at /docs when running the backend server. It includes:
POST /api/hd-chart- Generate Human Design chartPOST /api/email-capture- Capture email for Business Reading interestGET /health- Health check endpoint
The application is ready for deployment with:
- ✅ Complete frontend implementation
- ✅ Complete backend implementation
- ✅ Mock HD calculation (for development)
- ⏳ Database integration (optional for MVP)
- ⏳ Production HD API integration
Comprehensive documentation is available in the docs/ folder:
- Development Guidelines - Trunk-based development workflow and code standards
- Architecture - System architecture, data models, and integration points
- Deployment Guide - Step-by-step deployment instructions for Vercel and Railway
- Deployment Checklist - Pre and post-deployment verification steps
- Monitoring & Logging - Production monitoring, alerts, and troubleshooting
- Testing Guide - Testing strategy and test execution
- Integration Summary - Backend and frontend integration overview
- Execution Reference - Quick reference for execution and deployment
- Design Deliverables - UI/UX design artifacts and specifications
- Brand Research - Brand strategy and research findings
- Color Research - Color palette and design system specifications
- Responsive Testing - Mobile and responsive design test results
- E2E Test Samples - End-to-end testing samples and documentation
MIT License - see LICENSE file for details