Skip to content

spessolve/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ ARCHITECTURAL LINKS

Frontend & Backend CI Vercel Deployment

Flask React TypeScript TailwindCSS Vite Framer Docker Redis Postgres Vitest

Architectural Links is a premium, cinematic URL shortening system designed with high-performance aesthetics and monolithic structural integrity. It features a reactive 3D parallax background, a self-diagnostic demo mode, and a robust microservices-ready backend.


πŸ—οΈ System Architecture

The application is built using a modern decoupled architecture, ensuring scalability and a seamless user experience.

graph TD
    User((User)) -->|HTTPS| Frontend[Frontend: React/Vite]
    
    subgraph "Frontend Layer (Vercel Ready)"
        Frontend -->|1. Ping Diagnostic| Check{Backend Active?}
        Check -->|No| Demo[Demo Mode: Offline Simulation]
        Check -->|Yes| Normal[Normal Mode: API Interaction]
    end

    subgraph "Backend Layer (Dockerized)"
        Normal -->|API Request| Flask[Flask REST API]
        Flask -->|Cache Check| Redis[(Redis Cache)]
        Flask -->|Persist Data| DB[(PostgreSQL)]
    end

    Flask -->|Generate| ShortURL[Shortened URL]
    ShortURL --> Normal
Loading

✨ Key Features

  • Cinematic UI/UX: 1:1 high-fidelity design with dynamic SVG mesh grids and 3D parallax effects.
  • Auto-Diagnostic Demo Mode: Automatically switches to client-side simulation if the backend is unreachable (perfect for Vercel-only deployments).
  • Native Social Sharing: Integrated sharing menu via Web Share API with clipboard fallback.
  • Microservice Ready: Fully dockerized environment with PostgreSQL and Redis.
  • CI/CD Integrated: Automated GitHub Actions pipeline for linting and unit testing.

πŸ› οΈ Tech Stack

Frontend

  • React 18 + TypeScript
  • Vite (Build Tool)
  • Tailwind CSS (Styling)
  • Framer Motion (Cinematic Animations)
  • Lucide React (Architectural Icons)
  • Vitest (Unit Testing)

Backend

  • Python 3.11
  • Flask (REST Framework)
  • SQLAlchemy (ORM)
  • PostgreSQL (Database)
  • Redis (Caching & Rate Limiting)
  • Pytest (Testing Suite)

πŸš€ Getting Started

Prerequisites

1. Launch with Docker (Recommended)

Clone the repository and run:

docker-compose up --build
  • Frontend: http://localhost:3050
  • Backend API: http://localhost:5003

2. Manual Setup

If you prefer running components separately:

Backend:

cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.py

Frontend:

cd frontend
npm install
npm run dev

🌐 Deployment

Vercel (Frontend Only)

The project is optimized for Vercel. Simply connect your GitHub repository to Vercel. The application will detect the absence of the backend and automatically enter Demo Mode.

Production (Full Stack)

For a full deployment, use the docker-compose.yml configuration on a VPS with a reverse proxy like Nginx or Traefik.


πŸ“„ License

Project source is available under the MIT License.


Architectural Link System // v4.0.1 Stable

About

A cinematic, high-performance URL shortening system featuring a 3D parallax frontend (React/Framer) and a robust, scalable backend (Flask/Redis/Postgres). Built with Docker & CI/CD.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors