This is a simple Django URL shortener application that allows you to shorten long URLs into shorter, more manageable links.
To get started, you will need to have Docker and Docker Compose installed on your system. If you do not have them installed, you can download them from the official websites:
- Docker: https://www.docker.com/get-docker
- Docker Compose: https://docs.docker.com/compose/install/
Once you have Docker and Docker Compose installed, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/housemateguy/djangolinkshortner.git
-
Change into the project directory:
cd djangolinkshortner
-
Run Docker Compose to build and start the application:
docker-compose up # or sudo docker-compose up
-
Open your web browser and go to
http://localhost:8000
to access the application:
To create a shortened URL, follow these steps:
- Go to
http://localhost:8000
in your web browser. - Enter the long URL that you want to shorten in the input field.
- Set an expiration date or a click limit for the link.
- Click the "Shorten URL" button.
- You will be redirected to a new page that displays the shortened URL stats.
To view a shortened URL that you have created, follow these steps:
- Go to
http://localhost:8000/stats/{short_url}
in your web browser.