Skip to content

RaiMuhammadHaider/url-shortener-backend

Repository files navigation

URL Shortener Backend

A backend project built with Node.js, Express, Drizzle ORM, and PostgreSQL.
It provides APIs to shorten URLs, update them, and manage authentication.


Features

  • Shorten URLs with optional custom short codes
  • Update existing short codes and target URLs
  • JWT-based authentication for secure access
  • PostgreSQL database integration using Drizzle ORM
  • Input validation using Zod
  • Designed for scalability and easy extension

Tech Stack

  • Node.js – JavaScript runtime
  • Express.js – Web framework
  • Drizzle ORM – Database query builder & ORM
  • PostgreSQL – Relational database
  • Zod – Input validation
  • nanoid – Unique short code generator
  • JWT – User authentication

Setup Instructions

  1. Clone the repository
git clone https://github.com/RaiMuhammadHaider/url-shortener-backend.git

About

A secure and scalable URL shortener backend built with Node.js, Express, Drizzle ORM, and PostgreSQL. Features include custom short codes, JWT authentication, input validation, and full CRUD for URLs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors