Skip to content

NikoFoX/short_url_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Test Application.

Given the URL in the form the app checks DB for existing entry of that URL. If URL not found in DB, app adds new entry by generating random string. The result is a short version of the inserted URL.

The app is actually deployed on Heroku with 10 users already created: https://short-url-foxapp.herokuapp.com/

Use:

  1. Fill User DB table with X users by executing ./manage.py create_fake_users X It fetches data from randomuser.me and insert into DB User table. Without any user added, the app will give error.

  2. Run app and enter localhost/ to see the app.

2*) Add new website to DB Insert URL into input and choose how many characters should be generated. Submitters are fetched randomly from database and bound to new entry.

  1. At /XXXX/submitted you will see XXXX - the generated short URL which you can use.

The short link example: https://short-url-foxapp.herokuapp.com/9H3DE0/ which routes to https://www.google.com/.

*Entering the same URL directs you to the page with already generated short URL.

To check where does the short URL directs to, before actually directing to the original URL, prepend the URL with "!" sign, for example: https://short-url-foxapp.herokuapp.com/!9H3DE0/.

About

Django app for shortening submitted URL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published