Skip to content

ehsanmqn/url-shortener

Repository files navigation

A simple but fast Url Shortener

This is a simple Django project implemented to work as an efficient and high-speed URL Shortener. Async tasks are handled using Celery. Furthermore, in order to optimize the response time, this project uses Redis as a cache backend. Some tiny optimizations are also performed in Views.

Table of contents

Requirements

Project Overview

The project is a Django application. It serves a URL Shortener using DRF.

Getting started

Clone the repository

git clone [https://gitlab.com/ehsanmqn/urlshortener](https://github.com/ehsanmqn/url-shortener)

Prepare the project

cd url-shortener
virtualenv -p pyhton3 venv
source venv/bin/activate
pip install -r requirements.txt

Run celery worker

celery -A UrlShortener worker -B -l info

Run project

./manage.py runserver 8000

After running the project, it will be accessed through port 8000

Happy coding!