Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Application In Python + FastAPI

Generates and stores 6 character short URLs for given long URLs (in sqlite)

Exposes a simple Web UI on /

Two GET APIs:

/api/urls : Lists all available URLs /{short_code} : Lists the long url for the given code

POST API:

/shorten: accepts original_url and returns short_url

DELETE API:

/api/urls/{short_code}: Deletes the given short code and corresponding URL

Jinja2Templates for UI integration

Checks whether URL is reachable

Displays created at time, recently saved URLs and delete option on UI

Has switch to toggle dark theme and light theme

Supports upto 500 URLs

To Run Application: uvicorn main:app --reload --host 0.0.0.0 --port 8000

About

Supports upto 500 URL for locally hosted web UI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages