urlshortener.github.io.

🚀 URL Shortener with Django

banner

Django Version Python Version License PRs Welcome Build Status codecov

🎯 Project Overview

Welcome to the URL Shortener project built with Django! This project allows users to shorten long URLs into compact, easy-to-share links, similar to popular services like bit.ly. The project includes:

🌟 Key Features


📸 Screenshots

Home Page

Home Page

About Us Page

About Us Page Page

YouTube Downloader

YouTube Downloader


🛠️ Installation & Setup

Follow these steps to set up the project locally:

1. Clone the Repository

git clone https://github.com/your-username/url-shortener.git
cd url-shortener

2. Set Up a Virtual Environment

# Create a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate  # On Windows, use: venv\Scripts\activate

3. Install Required Dependencies

# Install dependencies from requirements.txt
pip install -r requirements.txt

4. Migrate the Database

# Run database migrations
python manage.py migrate

5. Run the Development Server

# Start the Django development server
python manage.py runserver

Now, open your browser and visit http://127.0.0.1:8000. Your URL Shortener should be up and running!


🔥 Usage

1. Home Page

Home Page

2. Shorten URL Page

Shorten URL Page

3. YouTube Video Downloader

YouTube Downloader


🧩 API Documentation

Our project also provides an API for programmatically shortening URLs. You can integrate it into other apps.

Endpoint: /api/shorten/


🛡️ Running Tests

To ensure everything is functioning as expected, run the following command:

python manage.py test

You can add unit tests to test various components of your project.


💻 Technologies Used


👨‍💻 Contributing

We welcome contributions! Please follow the steps below to contribute:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙌 Acknowledgments


🏗️ Future Improvements