Skip to content

A simple and efficient URL shortener built with Django DRF. This web application allows you to shorten long URLs, track the number of clicks, and manage your shortened links with ease.

License

Notifications You must be signed in to change notification settings

mertcan-tas/url-shortener-drf

Repository files navigation

Django URL Shortener (Rest API) App

A simple and efficient URL shortening application built with Django. This app allows users to shorten long URLs, track their usage, and manage the links.

Features

  • Shorten long URLs into concise, shareable links.
  • Redirect users seamlessly from the shortened URL to the original URL.
  • Track the number of clicks on each shortened link.
  • User authentication and ownership for secure link management.
  • API endpoints for creating, retrieving, and deleting shortened links.

Installation

1. Clone the repository:

git clone [email protected]:mertcan-tas/django-url-shortener.git

2. Set up a virtual environment (optional):

python -m venv env
source env/bin/activate  # On Windows, use `env\Scripts\activate`

3. Install project requirements:

pip install -r requirements.txt

4. Apply database migrations:

python manage.py makemigrations
python manage.py migrate

5. Run the development server:

python manage.py runserver

6. Access the app:

Open your browser and go to http://127.0.0.1:8000.

Contributing

We welcome contributions! Please fork this repository and submit a pull request with your changes.

License

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

About

A simple and efficient URL shortener built with Django DRF. This web application allows you to shorten long URLs, track the number of clicks, and manage your shortened links with ease.

Resources

License

Stars

Watchers

Forks