A comprehensive personal life planning and goal tracking application with habit tracking, financial budgeting, immigration advisory, and AI-powered financial advisory features.
- Python 3.9+
- Node.js 18+
- npm or yarn
# Navigate to backend directory
cd backend
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Start the server
python run.pyBackend will run on http://localhost:5000
# Navigate to frontend directory (in a new terminal)
cd frontend
# Install dependencies
npm install
# Start the development server
npm run devFrontend will run on http://localhost:3000
- Email: test@example.com
- Password: password123
- User Registration & Login (JWT Authentication)
- Profile Management
- Secure password hashing with bcrypt
- Create, Read, Update, Delete goals
- Goal categorization (Financial, Health, Career, Personal)
- Progress tracking with percentage completion
- Milestone management for sub-tasks
- Progress logging with notes
- Create daily or weekly habits
- Streak tracking (current and longest)
- One-click completion marking
- 30-day calendar history view
- Completion rate statistics
- Create budgets with date ranges
- Category management (e.g., Food, Transport, Entertainment)
- Expense tracking per category
- Visual spending breakdown (pie charts)
- Budget vs. actual spending comparison
- Over/under budget indicators
- Overview statistics for all features
- Goals progress charts
- Habit streak summary
- Budget status overview
- Quick action buttons
- Create immigration goals with target country, type, and budget
- Generate comprehensive immigration plans automatically
- Detailed risk assessment with mitigation suggestions
- Support for multiple countries:
- 加拿大 (Canada) - Express Entry
- 美国 (USA) - EB-1A, EB-2, EB-3
- 澳大利亚 (Australia) - 189, 190, 491
- 新西兰 (New Zealand) - Skilled Migrant
- 英国 (UK) - Innovator Founder
- 葡萄牙/西班牙/希腊 (Portugal/Spain/Greece) - Golden Visa
- Application process timeline visualization
- Document checklist with tracking
- Risk matrix visualization (High/Medium/Low)
- 理财目标管理
- 支持多种目标类型:退休养老、子女教育、购房首付、婚嫁储备、旅游基金、应急基金、财务自由等
- 自定义目标金额、目标日期和每月定投金额
- 实时进度追踪
- AI智能投资方案生成
- 基于风险偏好的资产配置建议(股票、债券、基金、现金)
- 五种风险等级模板:保守型、稳健型、平衡型、进取型、激进型
- 自动计算预期收益率和预期最终金额
- 投资收益模拟
- 复利计算模型
- 可视化收益增长曲线
- 可调节参数的模拟测试
- 风险评估
- 五维风险分析:市场风险、流动性风险、通胀风险、时间风险、产品风险
- 综合风险评分
- 个性化风险缓解建议
- 市场洞察
- 各类资产的市场趋势分析
- 投资建议提示
POST /api/v1/auth/register- Register new userPOST /api/v1/auth/login- LoginGET /api/v1/auth/profile- Get user profilePUT /api/v1/auth/profile- Update profile
GET /api/v1/goals- List goals (supports?category=and?status=filters)POST /api/v1/goals- Create goalGET /api/v1/goals/:id- Get goal detailsPUT /api/v1/goals/:id- Update goalDELETE /api/v1/goals/:id- Delete goalGET /api/v1/goals/:id/milestones- List milestonesPOST /api/v1/goals/:id/milestones- Create milestonePUT /api/v1/goals/:id/milestones/:milestoneId- Update milestoneGET /api/v1/goals/:id/progress- Get progress historyPOST /api/v1/goals/:id/progress- Log progress
GET /api/v1/habits- List all habits (with today's completion status)POST /api/v1/habits- Create habitGET /api/v1/habits/:id- Get habit detailsPUT /api/v1/habits/:id- Update habitDELETE /api/v1/habits/:id- Delete habitPOST /api/v1/habits/:id/complete- Mark habit completePOST /api/v1/habits/:id/uncomplete- Remove today's completionGET /api/v1/habits/:id/history- Get completion history
GET /api/v1/budgets- List all budgetsPOST /api/v1/budgets- Create budgetGET /api/v1/budgets/:id- Get budget detailsPUT /api/v1/budgets/:id- Update budgetDELETE /api/v1/budgets/:id- Delete budgetGET /api/v1/budgets/:id/categories- List categoriesPOST /api/v1/budgets/:id/categories- Add categoryPUT /api/v1/budgets/:id/categories/:categoryId- Update categoryDELETE /api/v1/budgets/:id/categories/:categoryId- Delete categoryGET /api/v1/budgets/:id/expenses- List expensesPOST /api/v1/budgets/:id/expenses- Add expenseDELETE /api/v1/budgets/:id/expenses/:expenseId- Delete expenseGET /api/v1/budgets/:id/summary- Get budget summary
GET /api/v1/immigration/goals- List immigration goalsPOST /api/v1/immigration/goals- Create immigration goalGET /api/v1/immigration/goals/:id- Get immigration goal detailsPUT /api/v1/immigration/goals/:id- Update immigration goalDELETE /api/v1/immigration/goals/:id- Delete immigration goalPOST /api/v1/immigration/goals/:id/generate-plan- Generate immigration planGET /api/v1/immigration/goals/:id/plan- Get immigration planGET /api/v1/immigration/goals/:id/risks- Get risk assessmentPOST /api/v1/immigration/goals/:id/risks- Update risk assessmentGET /api/v1/immigration/templates- Get all immigration templates
GET /api/v1/finance/advisor/options- Get goal types and risk tolerance optionsGET /api/v1/finance/advisor/goals- List financial goals (supports?status=and?goal_type=filters)POST /api/v1/finance/advisor/goals- Create financial goalGET /api/v1/finance/advisor/goals/:id- Get financial goal detailsPUT /api/v1/finance/advisor/goals/:id- Update financial goalDELETE /api/v1/finance/advisor/goals/:id- Delete financial goalPOST /api/v1/finance/advisor/goals/:id/generate-plan- AI generate investment planGET /api/v1/finance/advisor/goals/:id/plan- Get investment planPOST /api/v1/finance/advisor/goals/:id/simulate- Run investment simulationGET /api/v1/finance/advisor/goals/:id/risks- Get risk assessmentGET /api/v1/finance/advisor/market-insights- Get market insights
GET /api/v1/dashboard- Get dashboard statistics
- Python 3.9+
- Flask 3.0
- Flask-SQLAlchemy
- SQLite (Database)
- PyJWT (Authentication)
- bcrypt (Password Hashing)
- Flask-CORS
- React 18
- Vite
- React Router
- Bootstrap 5
- Chart.js
- React-ChartJS-2
- Axios
lifeplanning/
├── backend/
│ ├── app/
│ │ ├── __init__.py # Flask app factory
│ │ ├── models.py # SQLAlchemy models (including Immigration models)
│ │ ├── config.py # Configuration
│ │ └── routes/
│ │ ├── __init__.py
│ │ ├── auth.py # Authentication routes
│ │ ├── goals.py # Goals routes
│ │ ├── habits.py # Habits routes
│ │ ├── budgets.py # Budgets routes
│ │ ├── dashboard.py # Dashboard routes
│ │ └── immigration.py # Immigration advisory routes
│ │ └── utils/
│ │ ├── __init__.py
│ │ └── auth.py # Auth utilities
│ ├── requirements.txt
│ └── run.py
├── frontend/
│ ├── src/
│ │ ├── api/
│ │ │ └── index.js # API client (including immigration API)
│ │ ├── components/
│ │ │ ├── Navbar.jsx
│ │ │ └── ProtectedRoute.jsx
│ │ ├── context/
│ │ │ └── AuthContext.jsx
│ │ ├── pages/
│ │ │ ├── LoginPage.jsx
│ │ │ ├── RegisterPage.jsx
│ │ │ ├── DashboardPage.jsx
│ │ │ ├── GoalsPage.jsx
│ │ │ ├── GoalDetailPage.jsx
│ │ │ ├── HabitsPage.jsx
│ │ │ ├── HabitDetailPage.jsx
│ │ │ ├── BudgetsPage.jsx
│ │ │ ├── BudgetDetailPage.jsx
│ │ │ ├── ImmigrationPage.jsx
│ │ │ ├── ImmigrationFormPage.jsx
│ │ │ └── ImmigrationPlanDetailPage.jsx
│ │ ├── App.jsx
│ │ ├── main.jsx
│ │ └── index.css
│ └── package.json
└── README.md
| Country | Program | Type |
|---|---|---|
| 🇨🇦 Canada | Express Entry | Skilled Immigration |
| 🇺🇸 USA | EB-1A/EB-2/EB-3 | Employment-Based |
| 🇦🇺 Australia | 189/190/491 | Skilled Migration |
| 🇳🇿 New Zealand | Skilled Migrant | Skilled Immigration |
| 🇬🇧 UK | Innovator Founder | Business Immigration |
| 🇵🇹🇪🇸🇬🇷 EU | Golden Visa | Investment Immigration |
- 政策风险 (Policy Risk): Changes in immigration policies
- 资金风险 (Financial Risk): Insufficient funds for application and settlement
- 时间风险 (Timeline Risk): Long processing times and queue waiting
- 材料风险 (Documents Risk): Incomplete or non-compliant documentation
- 语言风险 (Language Risk): Language proficiency requirements not met
- Create immigration goal →
/immigration/new - Generate plan → Click "生成方案" button
- View plan details →
/immigration/:id/plan - Review risk assessment → Switch to "风险评估" tab