Play video
Pause video

Lantern
Master

Zi Wei Dou Shu Chart Tool, E-Commerce & Service Booking

2024 – 2025

Lantern Master Zi Wei Dou Shu Chart
Scroll
Project Type Full-Stack Platform
Timeline 2024–2025
Core Tech Astro, Vue 3, Laravel
Website lantern.com.tw

Project Overview

Lantern Master is a full-stack system combining a Zi Wei Dou Shu chart tool with an e-commerce platform, enabling users to generate charts online, purchase fortune-telling products, and book consultations with fortune tellers.

The frontend is built with Astro 5 + Vue 3 and TailwindCSS, while the backend API is developed with Laravel 11, and the admin panel uses Filament 3. The system integrates Newebpay online payment, Google / Line / Facebook OAuth third-party login, and AWS S3 file storage.

The project encompasses a multi-module architecture including product management, order system, points mechanism, service booking, and community features, with 54+ Eloquent Models on the backend, along with fine-grained role-based access control and event-driven architecture.

54+ Eloquent Models
SSR Astro Server-Side Rendering
3 Providers Google / Line / Facebook
Filament 3 Admin Panel

Core Features

01

Zi Wei Dou Shu Chart System

Enter lunar/solar birth data to instantly generate a complete Zi Wei Dou Shu chart, supporting life palace, twelve palaces, star arrangement and interpretation

02

E-Commerce & Payment Integration

Full product system with Newebpay online payment, supporting product categories, shopping cart, order management and payment callbacks

03

Service Booking & Points System

Online booking for fortune-telling services, with a points top-up/consumption mechanism allowing users to flexibly purchase chart readings or offline consultations

04

OAuth Third-Party Login

Supports Google, Line, and Facebook OAuth login, combined with JWT Token for separated frontend-backend authentication

Technical Details

Astro 5 SSR + Vue 3 Frontend Architecture

The frontend is built with Astro 5 in Server-Side Rendering mode, combined with Vue 3 for interactive components. Routing uses Astro's file-based routing system, with a mix of static and dynamic page rendering. State management uses Nanostores, sharing global state such as shopping cart and dialogs across components.

The UI is rapidly developed with TailwindCSS 4 and the Flowbite component library, along with Unplugin Icons for tree-shaking icon loading. The rich text editor uses Tiptap, and drag-and-drop functionality is implemented with vuedraggable.

Laravel 11 Backend API

The backend is built with Laravel 11 as a RESTful API, covering user authentication, product management, order processing, chart computation, and points system modules. Authentication uses JWT (tymon/jwt-auth), combined with Laravel Socialite for Google, Line, and Facebook OAuth login.

Data access control is implemented with Spatie Permission for role-based access management, along with Policy for fine-grained authorization. The system includes 54+ Eloquent Models, business logic managed by State Machine for order state transitions, and Activity Log to record all change operations.

Zi Wei Dou Shu Chart Engine

The chart engine integrates lunar calendar conversion (overtrue/chinese-calendar), supporting both solar and lunar birth data input, automatically calculating heavenly stems, earthly branches, twelve palaces, and primary/secondary star arrangements. Each user can create multiple charts and organize them into groups, with chart data stored in UserChart / UserChartGroup models.

Chart feature settings are controlled by ChartFeatureSetting, where different plan tiers correspond to different feature unlock scopes, combined with points consumption or subscription payments to unlock advanced interpretation content.

E-Commerce & Payment Integration

The shop system supports product categories, attribute specifications, image management, and inventory tracking. The shopping cart is persisted on the frontend with Nanostores, and the checkout flow integrates Newebpay, supporting credit card, ATM transfer and other payment methods.

Payment callbacks use a Callback + Notify dual-channel approach to ensure correct payment result recording. The order system distinguishes between product orders, service orders, chart orders, and points orders — four types, each with its own state machine and processing flow.

Filament 3 Admin Panel

The admin panel is built with Filament 3, providing 40+ Resources for CRUD operations across all business modules. It integrates Filament Shield for permission management, Filament Turnstile for login form protection, and custom components such as QR code generator and tree selector.

Points & Service Booking

The points system uses PointChangeRecord to track all point transactions (purchase, consumption, refund, gifting). Users can use points to purchase chart readings or book offline consultation services. The service booking system supports service categories, time slot management, and order tracking.

Tech Stack

Frontend

  • Astro 5 SSR
  • Vue 3 + Nanostores
  • TailwindCSS 4

Backend

  • Laravel 11 REST API
  • JWT Authentication
  • Spatie Permission

Admin

  • Filament 3
  • 40+ Resources
  • Shield Permission Management

Integrations

  • Newebpay Payment Gateway
  • OAuth Third-Party Login
  • AWS S3 File Storage

CONTACT US

Have a Similar Need? Let's Talk

Whether it's fortune-telling tools, e-commerce platforms, or full-stack system development, we can build a tailored solution for you.

Contact Us