Skip to content

A modern URL shortening service with analytics tracking, built with Next.js 14 and Node.js/Express.

Notifications You must be signed in to change notification settings

KUNJ1311/ShortLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShortLink

A modern URL shortening service with analytics tracking.

What is ShortLink?

ShortLink allows you to create short, memorable links for long URLs. Track clicks, analyze traffic by device type, and manage all your shortened links from a simple dashboard.

Features

  • ✂️ URL Shortening - Create short links with optional custom codes
  • 📊 Analytics - Track clicks with device-type breakdown (desktop, mobile, tablet)
  • 🎯 Dashboard - Manage all your links in one place
  • 💾 Persistent Links - All links stored in MySQL database
  • 🏥 Health Monitoring - Real-time system health dashboard
  • 🎨 Modern UI - Built with Next.js 14 and Tailwind CSS
image

Tech Stack

Frontend

  • Next.js 14 (App Router)
  • React 18
  • TypeScript
  • Tailwind CSS

Backend

  • Node.js with Express.js
  • MySQL Database
  • Cookie-based user tracking
  • RESTful API

Project Structure

ShortLink/
├── client/          # Next.js frontend application
├── server/          # Express.js backend API
└── .github/         # CI/CD workflows

Getting Started

Prerequisites

  • Node.js 22.x
  • MySQL database

Setup

  1. Clone the repository
git clone https://github.com/KUNJ1311/ShortLink.git
cd ShortLink
  1. Setup Backend
cd server
npm install
# Configure .env file (see server/README.md)
npm run dev
  1. Setup Frontend
cd client
npm install
# Configure .env.local file (see client/README.md)
npm run dev
  1. Access the application

Documentation

Deployment

The project includes automated CI/CD workflows for Azure deployment:

  • Frontend deploys to Azure Web App
  • Backend deploys to Azure Container Apps

License

MIT

About

A modern URL shortening service with analytics tracking, built with Next.js 14 and Node.js/Express.

Topics

Resources

Stars

Watchers

Forks