Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Unified Hosting Control Panel - Next.js Edition

Enterprise hosting control panel with billing automation, reseller management, and advanced security

Status Stack Sprint


πŸ“‹ Table of Contents


🎯 Overview

A modern, full-featured hosting control panel designed for:

  • Super Admins: Platform management, server provisioning, billing configuration
  • Resellers: White-label hosting management, customer billing, support tickets
  • Customers: Website management, file manager, database tools, email accounts
  • Technical Users: SSH/SFTP access, PHP configuration, cron jobs, Git integration

Key Features

  • Multi-tenant Architecture: Support for resellers with white-label branding
  • Automated Billing: Stripe integration, invoice generation, auto-renewals
  • Website Hosting: NGINX-based hosting with PHP-FPM, MySQL, SSL
  • Developer Tools: SSH, SFTP, Git integration, PHP version management
  • Security: JWT authentication, 2FA, role-based access control
  • Monitoring: Prometheus metrics, Grafana dashboards, audit logging

πŸ“š Documentation

Product Documentation

Document Description Status
πŸ“„ PRD Product Requirements Document βœ… Complete
πŸ“˜ Implementation Guide Technical implementation details βœ… Complete
πŸ“Š User Stories 40 detailed user stories βœ… Complete

Planning & Roadmap

Document Description Status
πŸ“‹ Product Backlog Review Comprehensive backlog analysis βœ… Complete
πŸ“Š Product Backlog CSV 47 stories ready for import βœ… Complete
πŸ“… Sprint Planning Guide 6-sprint team plan (14 weeks) βœ… Complete
πŸ—ΊοΈ MVP Roadmap 3-month visual timeline βœ… Complete

Solo Developer Setup

Document Description Status
πŸ‘€ Solo Developer Setup Infrastructure & cost analysis βœ… Complete
πŸš€ Solo Sprint Plan 18-sprint plan (9 months) βœ… Complete
πŸ› οΈ Homelab Setup Docker Compose development env βœ… Complete

Production Deployment

Document Description Status
πŸ—οΈ Infrastructure Overview Production deployment overview βœ… Complete
πŸ“– Production Guide Complete deployment to AX 43 βœ… Complete
βš™οΈ systemd Services Service management with systemd βœ… Complete
πŸ€– Ansible Playbooks Automated deployment βœ… Complete

πŸ› οΈ Tech Stack

Frontend

  • Next.js 16 - App Router, Server Components (RSC)
  • React 19 - Latest features and optimizations
  • TypeScript 5.x - Type safety
  • Tailwind CSS 4.x - Utility-first styling
  • Zustand - State management
  • React Query - Data fetching and caching
  • React Hook Form + Zod - Form validation
  • Lucide React - Icon library

Backend

  • RUST - API Gateway (Actix-web / Axum)
  • Go - Microservices (Fiber framework)
    • User Management Service
    • Billing Service
    • Provisioning Service
    • Email Service
    • Support Ticket Service

Database & Storage

  • PostgreSQL 16+ - Primary database
  • Redis 7.2+ - Session storage & caching
  • Hetzner Object Storage - Backups

Infrastructure

  • Hetzner AX 43 - Production server (8-core, 64GB RAM, 2x512GB NVMe)
  • NGINX 1.26 - Reverse proxy & web server
  • systemd - Service management (production)
  • Docker Compose - Development environment only (homelab)
  • Ansible - Automated deployment
  • GitHub Actions - CI/CD pipeline

Monitoring & Automation

  • Prometheus - Metrics collection
  • Grafana - Monitoring dashboards
  • n8n - Workflow automation
  • NATS - Message broker

πŸš€ Getting Started

Prerequisites

  • Docker 20.x or later
  • Docker Compose 2.x or later
  • Node.js 20.x or later (for Next.js development)
  • RUST 1.70+ (for API gateway development)
  • Go 1.21+ (for microservices development)
  • PostgreSQL 16+ (via Docker or homelab)

Quick Start (Homelab Development Environment)

  1. Clone the repository:

    git clone https://github.com/xerudro/next-js-panel.git
    cd next-js-panel
  2. Set up homelab environment:

    cd homelab
    make init

    This will:

    • Create .env from template
    • Start all services (PostgreSQL, Redis, n8n, Prometheus, Grafana)
    • Run health checks
  3. Access services:

  4. Verify setup:

    make health
    make test

For detailed setup instructions, see Homelab Setup Guide.

Development Workflow

Weekly Theme Approach (reduces context switching):

Backend Week (Week 1 of sprint):

  • Morning: RUST/Go development
  • Afternoon: Testing & integration

Frontend Week (Week 2 of sprint):

  • Morning: Next.js development
  • Afternoon: UI/UX & integration

See SOLO-SPRINT-PLAN.md for detailed workflow.


πŸ“Š Project Status

Current Phase: Pre-Sprint 0

Setting up development environment and project structure.

Sprint Progress

Sprint Status Dates Points Key Deliverables
Pre-Sprint 🟑 In Progress Now - Homelab setup, project scaffolding
Sprint 0 πŸ”΄ Not Started Weeks 1-2 21 CI/CD, Database schema
Sprint 1 πŸ”΄ Not Started Weeks 3-4 13 Authentication system
Sprint 2 πŸ”΄ Not Started Weeks 5-6 13 API Gateway, Monitoring

Next Milestone: Complete homelab setup β†’ Begin Sprint 0

Development Timeline

  • Estimated MVP Launch: 9 months (36 weeks)
  • Expected Velocity: 10-15 points/sprint (with AI assistance)
  • Total Story Points: 152 points for MVP

See SOLO-SPRINT-PLAN.md for full timeline.


πŸ’° Cost Analysis

Monthly Operating Costs

Development Phase: €14-27/month

  • 2 VPS servers: €16-32/month
  • Homelab electricity: €5-10/month
  • GitHub Pro + Copilot: €0 (already subscribed)

Production Phase: €60-82/month

  • Hetzner AX 43: €49-59/month (already have)
  • 2 VPS servers: €16-32/month
  • Hetzner Object Storage: €8/month (500GB)
  • Homelab: €5-10/month

Break-even Point: 8-10 customers @ €10/month

See SOLO-DEVELOPER-SETUP.md for detailed analysis.


🎯 MVP Scope

Phase 1: Core Features (Sprints 0-5)

Technical Infrastructure:

  • βœ… CI/CD pipeline
  • βœ… Database schema & migrations
  • βœ… API Gateway with rate limiting
  • βœ… JWT authentication with 2FA
  • βœ… Monitoring & observability

Admin Features:

  • βœ… Super Admin dashboard
  • βœ… User management
  • βœ… Package management
  • βœ… Billing configuration

Reseller Features:

  • βœ… Reseller dashboard
  • βœ… Customer management
  • βœ… Invoice management

Customer Features:

  • βœ… Customer dashboard
  • βœ… Website management
  • βœ… Backup & restore
  • βœ… Billing & invoices

Developer Tools:

  • βœ… SSH access
  • βœ… SFTP access
  • βœ… PHP configuration
  • βœ… Cron jobs

Phase 2: Advanced Features (Post-MVP)

Deferred to months 10-12:

  • File manager
  • Email account management
  • SSL certificate management
  • Domain management
  • White-label branding
  • Custom pricing
  • Support ticket system

🀝 Contributing

This is currently a solo developer project, but contributions are welcome!

Development Principles

  1. Consistency: Code daily, even if only 2-4 hours
  2. Focus: Stick to weekly themes (Backend vs Frontend)
  3. AI Assistance: Use GitHub Copilot and Claude Code extensively
  4. Scope Discipline: Don't add features outside the plan
  5. Testing: Write tests as you code (don't defer)
  6. Documentation: Document as you build

AI Tools in Use

  • GitHub Copilot: Boilerplate generation, unit tests, type definitions
  • Claude Code: Architecture decisions, debugging, code review
  • Expected Productivity Boost: 30-40% faster development

πŸ“‚ Repository Structure

next-js-panel/
β”œβ”€β”€ homelab/                    # Docker Compose development environment
β”‚   β”œβ”€β”€ docker-compose.yml      # 7 services (PostgreSQL, Redis, n8n, etc.)
β”‚   β”œβ”€β”€ Makefile               # 20+ helpful commands
β”‚   β”œβ”€β”€ quick-start.sh         # Interactive setup script
β”‚   └── README.md              # Homelab documentation
β”œβ”€β”€ docs/                      # Product documentation
β”‚   β”œβ”€β”€ PRD.md                 # Product Requirements Document
β”‚   β”œβ”€β”€ Implementation-Guide.md # Technical implementation details
β”‚   └── User-Stories.md        # User stories
β”œβ”€β”€ planning/                  # Project planning documents
β”‚   β”œβ”€β”€ Product-Backlog-Review.md
β”‚   β”œβ”€β”€ Product-Backlog.csv
β”‚   β”œβ”€β”€ Sprint-Planning-Guide.md
β”‚   β”œβ”€β”€ MVP-Roadmap.md
β”‚   β”œβ”€β”€ Solo-Developer-Setup.md
β”‚   └── Solo-Sprint-Plan.md
β”œβ”€β”€ api-gateway/               # RUST API Gateway (TBD)
β”œβ”€β”€ services/                  # Go Microservices (TBD)
β”‚   β”œβ”€β”€ user-service/
β”‚   β”œβ”€β”€ billing-service/
β”‚   β”œβ”€β”€ provisioning-service/
β”‚   └── email-service/
β”œβ”€β”€ frontend/                  # Next.js 16 Frontend (TBD)
└── README.md                  # This file

πŸŽ“ Learning Resources

Next.js & React

RUST

Go

DevOps


πŸ“ License

This project is proprietary. All rights reserved.


πŸ“§ Contact

For questions or feedback:


πŸ™ Acknowledgments

Built with:

  • β˜• Coffee
  • 🎡 Music
  • πŸ€– AI assistance (GitHub Copilot, Claude Code)
  • πŸ’ͺ Determination

Last Updated: 2025-11-11 Status: Pre-Sprint 0 - Setting up development environment Next Step: Initialize project structure and begin Sprint 0

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages