Views
No views yet
hmi/
├── backend/ # FastAPI Python backend
├── frontend/ # Next.js React frontend
└── .venv/ # Shared Python virtual environment1# Install Python dependencies (venv already exists at root)
2source .venv/bin/activate
3pip install -r backend/requirements.txt
4
5# Configure environment
6cd backend
7cp .env.example .env
8# Edit .env with your database credentials
9
10# Run backend
11uvicorn app.main:app --reload --port 80001cd frontend
2npm install
3npm run dev/api/v1/login/access-token - Authentication/api/v1/users/ - User management/api/v1/courses/ - Course CRUD/api/v1/lessons/ - Lesson management/api/v1/topics/ - Topic management/api/v1/enrollments/ - Course enrollment & progress1cd backend
2source ../.venv/bin/activate
3
4# Run with hot reload
5uvicorn app.main:app --reload
6
7# Run tests (when implemented)
8pytest1cd frontend
2
3# Development server
4npm run dev
5
6# Build for production
7npm run build
8
9# Lint code
10npm run lint1-- Create database
2CREATE DATABASE appdb;
3
4-- Tables are auto-created by SQLModel on startup1cd backend
2pip install alembic
3alembic init migrations
4alembic revision --autogenerate -m "Initial migration"
5alembic upgrade head1DATABASE_URL=mysql+asyncmy://user:password@127.0.0.1:3306/appdb
2REDIS_URL=redis://127.0.0.1:6379/0
3SECRET_KEY=your-secret-key-change-in-productionNEXT_PUBLIC_API_URL=http://localhost:8000docker-compose up