Getting Started โ
Choose your preferred frontend framework and match it with a backend API to quickly start with HaloLight.
๐ฏ Choose Your Combination โ
HaloLight uses a fully decoupled frontend-backend architecture, supporting 12 Frontends ร 8 Backends = 96 Combinations.
Step 1: Choose Frontend Framework (Pick 1 of 12) โ
| Framework | Use Cases | Characteristics |
|---|---|---|
| Next.js / Nuxt | Multi-tenant SaaS, SEO needs | SSR + Edge rendering friendly |
| Vue | Quick delivery for small-medium teams | Lightweight, smooth learning curve |
| Angular | Large-scale, long-term projects | Strong typing, clear architecture |
| SvelteKit / Solid / Qwik | High interaction, real-time scenarios | Ultimate performance & reactivity |
| Remix / Preact / Lit | Progressive enhancement, lightweight | Web Components, small bundle size |
| Astro | Content-focused admin panels | Islands architecture, zero JS by default |
Step 2: Choose Backend API (Pick 1 of 8) โ
| Backend Tech | Use Cases | Characteristics |
|---|---|---|
| NestJS / Express | Node.js ecosystem teams | High compatibility with frontend TS |
| FastAPI | Data/AI-driven applications | Python ecosystem, rapid iteration |
| Spring Boot | Enterprise, financial industry | Mature middleware ecosystem |
| Go Fiber | High performance, high concurrency | Low resource usage |
| PHP Laravel | Traditional web teams | Complete ecosystem, easy to learn |
| Bun + Hono | Ultimate performance pursuit | Next-gen runtime |
| tRPC BFF | Mobile/Desktop multi-platform | Type sharing, aggregation & simplification |
Step 3: Recommended Combinations (By Scenario) โ
๐ Multi-tenant SaaS / Enterprise Admin
Recommended: Next.js + NestJS
Advantages:
- SSR + TypeScript end-to-end unification
- Code sharing (types, utilities)
- Mature deployment ecosystem (Vercel + Railway/Fly.io)
๐ค Data-Intensive / AI-Driven Apps
Recommended: Vue + FastAPI or React + FastAPI
Advantages:
- Python data science ecosystem (Pandas, NumPy, scikit-learn)
- Fast API development (auto docs, dependency injection)
- Lightweight frontend, easy chart library integration
๐ข Large Enterprise / Long-term Projects
Recommended: Angular + Spring Boot
Advantages:
- Strong typing, modular architecture
- Mature enterprise middleware (auth, cache, message queue)
- Long-term support and stability
โก High-Performance Real-time Apps
Recommended: SvelteKit + Go Fiber
Advantages:
- Frontend compilation optimization, minimal bundle
- Backend high throughput, low latency
- Low resource usage, cost optimization
๐ฑ Mobile/Desktop Multi-platform Unified
Recommended: Any Frontend + tRPC BFF + Any Backend
Advantages:
- BFF aggregates and tailors APIs for multiple platforms
- TypeScript end-to-end type safety
- Reduces frontend complexity
Requirements โ
- Node.js 18.17 or higher
- pnpm 8+ (recommended) / npm / yarn
Next.js Version โ
# Clone repository
git clone https://github.com/halolight/halolight.git
cd halolight
# Install dependencies
pnpm install
# Start development server
pnpm devVisit http://localhost:3000 to see the result.
Detailed documentation: Next.js Version Guide
Vue Version โ
# Clone repository
git clone https://github.com/halolight/halolight-vue.git
cd halolight-vue
# Install dependencies
pnpm install
# Start development server
pnpm devVisit http://localhost:5173 to see the result.
Detailed documentation: Vue Version Guide
Default Credentials โ
All versions use the same Mock credentials:
| Role | Password | |
|---|---|---|
| Admin | admin@halolight.h7ml.cn | 123456 |
Directory Structure โ
project-root/
โโโ src/
โ โโโ app/ # Page routes
โ โโโ components/ # Components
โ โ โโโ ui/ # shadcn/ui components
โ โ โโโ layout/ # Layout components
โ โ โโโ dashboard/ # Dashboard components
โ โโโ hooks/ # Custom hooks
โ โโโ stores/ # State management
โ โโโ services/ # API services
โ โโโ lib/ # Utility library
โ โโโ types/ # Type definitions
โ โโโ mocks/ # Mock data
โโโ public/ # Static assets
โโโ package.json๐ Quick Examples โ
Option 1: Next.js + NestJS โ
# Terminal 1: Start frontend
git clone https://github.com/halolight/halolight.git && cd halolight
pnpm install && pnpm dev# Terminal 2: Start backend
git clone https://github.com/halolight/halolight-api-nestjs.git && cd halolight-api-nestjs
pnpm install && pnpm devOption 2: Vue + FastAPI โ
# Terminal 1: Start frontend
git clone https://github.com/halolight/halolight-vue.git && cd halolight-vue
pnpm install && pnpm dev# Terminal 2: Start backend
git clone https://github.com/halolight/halolight-api-python.git && cd halolight-api-python
pip install -e ".[dev]" && uvicorn app.main:app --reloadNext Steps โ
- Next.js Version - Deep dive into Next.js implementation
- Vue Version - Deep dive into Vue implementation
- NestJS API - NestJS backend development guide
- Python API - FastAPI backend development guide
- Architecture Combinations - View all 96 combinations
- Development Docs - View design specifications and contracts