Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

Created using Flask and VanillaJS, this is a URL shortener in which you can also create an account to save your shortened URLs.

Installation

Use the package manager pip to install the following dependencies

  • flask
  • flask_wtf
  • pymongo

Additionally, create a mongoDB database for the URLs and create a .env file in the root directory with the following variables:

  • MONGO_DB_URI
    • copy the connection URI from your mongoDB database.
  • DOMAIN
    • your local IP address.
  • PORT
    • the port you want to use.
  • FLASK_SECRET_KEY
    • the secret key for your flask application.
  • PEPPER
    • the pepper string for storing account passwords.

Then, change your directory to the /URL-Shortener/src directory. To start, type

python app.py

And you're finished!

How to Use

To shorten a URL, type in the main textbox and press the Shorten button or click hit Enter. The shortened URL will be displayed in the same textbox. Main Textbox Location

To sign in or sign up, press the Sign In or Sign Up button.