GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — VotePeace/ARCHITECTURE.md at main · MDF05/VotePeace

Expand file tree

/

ARCHITECTURE.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
54 lines (38 loc) · 1.7 KB
/

ARCHITECTURE.md

Copy path

File metadata and controls

54 lines (38 loc) · 1.7 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

System Architecture

High-Level Overview

VotePeace is designed as a Decoupled Monolith, where the frontend and backend reside in the same repository but operate as distinct, loosely coupled services.

Architecture Diagram

graph TD
    User((User))
    Admin((Admin))
    
    subgraph Client [Frontend Layer]
        WebApp[React SPA \n(VotePeace-Frontend)]
    end
    
    subgraph Server [Backend Layer]
        API[Go Fiber API \n(VotePeace-Backend)]
        Auth[Auth Service \n(JWT/Bcrypt)]
        DB[(SQLite Database)]
    end
    
    User -->|HTTPS / JSON| WebApp
    Admin -->|HTTPS / JSON| WebApp
    
    WebApp -->|REST API Requests| API
    
    API -->|Auth Check| Auth
    API -->|Query/Transaction| DB
Loading

Component Communication

Frontend ↔ Backend

  • Protocol: HTTP/1.1 (REST)
  • Data Format: JSON
  • Authentication: JWT (JSON Web Tokens) or Session-based (depending on implementation).
  • CORS: The backend creates an allowlist for the frontend origin (http://localhost:5173 in dev).

Database Interaction

  • The Backend holds exclusive access to the SQLite database file.
  • No direct database access is allowed from the client.

Design Patterns

  • Backend: MVC (Model-View-Controller) adapted for API use.
  • Frontend: Component-Based Architecture with Unidirectional Data Flow (Redux).

##Scalability Considerations

While currently functioning as a monolith with local storage (SQLite), the architecture allows for scaling:

  1. Database: GORM allows switching SQLite to PostgreSQL without code changes.
  2. Containerization: Both services can be individually containerized (Docker) and orchestrated (Kubernetes/Docker Compose).
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.