Created using Flask and VanillaJS, this is a URL shortener in which you can also create an account to save your shortened URLs.
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.pyAnd you're finished!
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.

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