TinyURL Backend is an API that powers a URL shortening service. It allows creating shortened URLs and fetching statistics on the most clicked URLs.
- π Create shortened URLs
- π Fetch statistics for the most clicked URLs
- β‘ Built with Python, FastAPI, and PostgreSQL
- π§ Easy deployment on Linux
TinyURL Backend is an API that powers a URL shortening service. It allows creating shortened URLs and fetching statistics on the most clicked URLs.
- π Create shortened URLs
- π Fetch statistics for the most clicked URLs
- β‘ Built with Python, FastAPI, and PostgreSQL
POST /urlsβ Create a new shortened URLGET /urls/topβ Get the most clicked URLsGET /urls/{short_id}β Get redirect URL data
Check out the frontend for this project here: TinyURL Frontend
- Python β Core language
- FastAPI β High-performance API framework
- PostgreSQL β Relational database for storing URLs and stats
Can be deployed on Linux servers or cloud platforms supporting Python and PostgreSQL.
- Clone the repository
git clone https://github.com/bytezera04/TinyURL-backend.git
- Install dependencies
pip install -r requirements.txt
- Run the server
uvicorn main:app --reload
- Access the API at http://localhost:8000
This project is open source.