A simple Django project to implement an URL Shortnening service. An API service for shortening links programmatically.
Tools:
- Django
- Django Rest Framework
- Ajax
Demo: https://url-shortener-drf.herokuapp.com/
API:
URL: https://url-shortener-drf.herokuapp.com/api/shorten-url/
Method: POST
Body:
{
"url": "https://www.google.com/"
}
Run:
- Clone the project
- Do
cd <project-folder>
andpip install requirements.txt
- Run
python manage.py makemigrations
andpython manage.py migrate
- Deploy test server:
python manage.py runserver