Skip to content

About

A modern, blazing-fast URL shortener web application that generates, manages, and shares shortened links through a clean and responsive interface.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🔥 Blazing URL Shortener

Premium, High-Performance URL Shortener & Analytical Link Tracker

Dynamic Analytics Timeline • Glassmorphism Aesthetics • Brevo OTP Auth • MongoDB Atlas Cloud Integration


📖 Overview

Blazing URL Shortener is a feature-rich web application designed and branded by Alok. The application allows users to shrink long, complex web addresses into brief, memorable links with optional custom alias backhalves.

It includes an interactive glassmorphic dashboard featuring detailed, real-time analytics reports. The application tracks total clicks, unique visitors, browser user agents, device types, referrers, and timeline activity. The platform incorporates a secure verification system via JWT and transactional email codes using Brevo (formerly Sendinblue).


✨ Key Features

Feature Description
🔥 Instant Link Shortening Standard shortening using secure, collision-free nanoid hashes.
🏷️ Custom Alias backhalves Customize your links with custom names (e.g. blazing/promo-2026) for branding campaigns.
📊 Advanced Clicks Timeline Interactive SVG timeline visualizer graphing click traffic over time.
🌐 User-Agent analytics Exhaustive click tracking breaking down visitors by web browsers, operating systems, devices, and referral urls.
🔑 Brevo Transactional Emails Safe user registration and password recovery using numeric One-Time Passwords (OTPs) dispatched via Brevo's REST API.
🛡️ JWT & Route Security Secure JWT bearer tokens allowing only link owners to view analytics reports or delete links.
💎 Glassmorphic UI Theme Beautiful dark-mode user interface using custom HSL styles, subtle shadows, and responsive layouts.

🛠️ Tech Stack

  • Frontend Core: React 18, Vite, Lucide Icons
  • Backend Server: Node.js, Express.js
  • Database Layer: MongoDB, Mongoose ODM
  • Email Delivery: Brevo (SMTP/HTTP API)
  • Styling: Vanilla CSS (Custom Glassmorphism styling system)
  • Token Verification: JSONWebToken, BcryptJS

📁 Repository Structure

├── backend/
│   ├── src/
│   │   ├── config/       # Database connections
│   │   ├── controllers/  # Route handler controllers (Auth, URLs)
│   │   ├── dao/          # Data Access Objects (User, OTP, URL)
│   │   ├── middleware/   # JWT verification middleware
│   │   ├── models/       # Mongoose schemas (User, OTP, URL)
│   │   ├── routes/       # Express route mappings
│   │   └── services/     # Transactional services (Brevo email service)
│   ├── app.js            # Express backend startup entry
│   └── package.json
│
├── frontend/
│   ├── public/           # Static assets
│   ├── src/
│   │   ├── components/   # React components (Header, Forms, Catalog, Charts, Auth)
│   │   ├── App.jsx       # Main dashboard layout
│   │   ├── index.css     # Global glassmorphism design system
│   │   └── main.jsx      # Vite entrypoint
│   ├── vite.config.js    # Vite compilation rules
│   └── package.json

⚙️ Environment Configuration

PORT=5000
MONGODB_URI=mongodb://localhost:27017/blazing-url-shortener
JWT_SECRET=your_jwt_secret_key
FRONTEND_URL=http://localhost:5173

# Brevo Email Configuration (For live signup/reset emails)
BREVO_API_KEY=your_brevo_api_key_here
BREVO_SENDER_EMAIL=no-reply@yourdomain.com
BREVO_SENDER_NAME="Blazing URL Shortener"

🚀 Local Installation

Prerequisites

  • Node.js installed (v18+ recommended)
  • MongoDB installed and running locally, or a MongoDB Atlas URI.

1. Set up Backend

# Navigate to the backend directory
cd backend

# Install dependencies
npm install

# Create and populate .env file
cp .env.example .env

# Run development server
npm run dev

2. Set up Frontend

# Navigate to the frontend directory
cd ../frontend

# Install dependencies
npm install

# Build & launch Vite dev server
npm run dev

Open http://localhost:5173 in your browser to interact with the dashboard.


🌐 Production Deployment

  • Backend: Deploy the backend/ subdirectory to Render as a Web Service. Configure your environment variables in the dashboard.
  • Frontend: Deploy the frontend/ subdirectory to Vercel. Define VITE_API_URL pointing to your deployed backend URL.
  • Database: Set up a free cluster on MongoDB Atlas and feed the connection string to MONGODB_URI in Render.

Made with 💖 by Alok

About

A modern, blazing-fast URL shortener web application that generates, manages, and shares shortened links through a clean and responsive interface.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages