Skip to content

About

AeroLock Web is a Next.js 15 & TypeScript aviation terminal built to prevent double booking via Redis Distributed Locks and prioritize seat allocation using a CLV-based waitlist powered by Redis Sorted Sets. Includes real-time seat locking, React Query telemetry, and stealth fleet tracking.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AeroLock Web

AeroLock Web is a tactical air traffic coordination and stealth fleet management platform engineered with a high-precision cyber-military interface. Built for high-security flight scheduling, tactical fleet monitoring, and real-time flight vector authorization, the platform provides seamless operations across dual clearance tiers.


Core Features

Tactical Flight Search and Vector Routing

  • Search, filter, and monitor active stealth flight vectors by origin, destination, clearance tier, and stealth class.
  • Dynamic interactive map displaying flight corridors, node connections, and live vector routes.
  • Detailed flight parameter inspection including ETA, duration, passenger capacity, and encryption key requirements.

Tactical Fleet Management

  • Real-time fleet unit status tracking (ACTIVE, STANDBY, IN_TRANSIT, MAINTENANCE).
  • Comprehensive telemetry metrics for each vessel: payload capacity, range, speed, stealth classification, fuel percentages, and defensive armaments.

Mission Booking and Seat Allocation

  • Interactive seating map with real-time seat locking, class selection, and passenger manifest management.
  • Multi-tier checkout workflow supporting tactical payload booking and secure transfer states.
  • Priority waitlist queue system for high-demand or restricted flight corridors.

System Telemetry and Security Protocols

  • Live infrastructure state monitoring including DEFCON status (NOMINAL, ELEVATED, DEFCON_2), node ping, network jitter, and encryption strength.
  • Operational system log stream categorized by security, network, navigation, and clearance events.
  • Verification workflows for security protocols and quantum-resistant encryption keying.

L2 Command Deck (Admin Terminal)

  • Restricted command workspace accessible exclusively to L2_COMMAND clearance operators.
  • Command Injector modal (QuickCmd) allowing directive injection and terminal navigation.
  • Live administrative management of personnel clearance, flight vector overrides, force-cancellation of bookings, and vector injection.
  • Synthesized audio feedback utilizing the Web Audio API for tactical terminal interactions.

Technology Stack

  • Framework: Next.js 15 (App Router architecture)
  • Language: TypeScript 5.6
  • Styling: Tailwind CSS v4 with custom monospace dark-mode tactical UI design system
  • State Management & Data Fetching: TanStack React Query v5 & React Context API
  • Icons: Lucide React & Google Material Symbols
  • HTTP Client: Axios with token interceptors and fallback mock dataset support
  • Audio Engine: HTML5 Web Audio API oscillator synthesis

Access Tiers and Clearance Matrix

Clearance Level Description Accessible Modules
L1_CIVILIAN Standard Operator / Civilian Passenger Search, Flights, Bookings, Waitlist Queue, Checkout
L2_COMMAND Command Authority / System Administrator All Civilian modules + Command Deck (/command), Vector Injection, Priority Overrides, Personnel Management

Project Structure

AeroLock-Web/
├── app/                      # Next.js App Router route handlers & page entrypoints
│   ├── bookings/             # Booking management route
│   ├── checkout/             # Payment and transaction flow
│   ├── command/              # L2 Command Deck page entrypoint
│   ├── dashboard/            # Operator dashboard
│   ├── fleet/                # Stealth fleet overview page
│   ├── flights/              # Active flight vector list page
│   ├── login/                # Authentication page
│   ├── logs/                 # System logs route
│   ├── protocols/            # Security protocols route
│   ├── search/               # Tactical flight search route
│   ├── system/               # System metrics route
│   └── waitlist/             # Priority waitlist page
├── src/                      # Core application source code
│   ├── app/                  # Sub-route component implementations
│   │   └── command/          # L2 Command Deck components (Personnel, Vectors, Overrides, Waitlist)
│   ├── components/           # Reusable UI components, modals, and views
│   │   ├── seats/            # Interactive seat map selection components
│   │   ├── views/            # Main view containers (BookingsView, FleetView, LogsView, etc.)
│   │   ├── AppShell.tsx      # Root application layout shell with sidebar navigation
│   │   ├── Header.tsx        # Top status header
│   │   ├── Footer.tsx        # Terminal footer
│   │   ├── BentoGrid.tsx     # Feature grid highlights
│   │   └── InteractiveMap.tsx# SVG flight vector route visualizer
│   ├── context/              # Global React state context (TerminalContext.tsx)
│   ├── data/                 # Static mock fallback datasets (mockData.ts)
│   ├── hooks/                # Custom React hooks & React Query mutations (useAdmin, useUserProfile)
│   ├── types.ts              # TypeScript interface & type declarations
│   └── utils/                # Utility functions and storage helpers
├── public/                   # Static assets
├── .env.example              # Environment variables template
├── package.json              # Dependencies and script definitions
└── tsconfig.json             # TypeScript compiler settings

Environment Setup

Create a .env.local file in the root directory by copying .env.example:

cp .env.example .env.local

Configure the required environment variables:

# Optional Gemini API Key for AI integrations
GEMINI_API_KEY="your_gemini_api_key"

# Application host URL
APP_URL="http://localhost:3000"

Installation and Local Development

  1. Clone the Repository:

    git clone https://github.com/tianshen3/AeroLock_Web.git
    cd AeroLock_Web
  2. Install Dependencies:

    npm install
    # or
    bun install
  3. Start Development Server:

    npm run dev
    # or
    bun dev
  4. Access the Application: Open http://localhost:3000 in your web browser.


Available Scripts

In the project directory, you can run:

  • npm run dev: Launches the Next.js development server with hot reloading.
  • npm run build: Compiles and builds the production application bundle.
  • npm run start: Starts the Next.js production server.
  • npm run prod: Combines building and starting the production server (next build && next start).
  • npm run lint: Runs ESLint to check for code quality and syntax issues.

Authentication and Command Access

To access the restricted L2 Command Deck (/command):

  1. Navigate to the login page (/login).
  2. Select L2_COMMAND clearance.
  3. Authenticate to store clearance tokens in local storage.
  4. The system will unlock access to personnel management, vector creation/termination, and priority override controls.

About

AeroLock Web is a Next.js 15 & TypeScript aviation terminal built to prevent double booking via Redis Distributed Locks and prioritize seat allocation using a CLV-based waitlist powered by Redis Sorted Sets. Includes real-time seat locking, React Query telemetry, and stealth fleet tracking.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages