This is a lightweight URL shortener built using Flask, a micro web framework for Python. The application allows users to generate short aliases for long URLs, making it easy to share links in a concise and user-friendly manner.
URL Shortening: Quickly create short aliases for long URLs.
Redirection: Users are redirected to the original URL when they access the shortened link.
Customizable Aliases: Choose custom aliases for your shortened URLs.
- Create a project required environment
- Install a pipenv
pip3 install pipenv
- To create virtual env for project
pipenv install
Note: it will Creating a virtualenv for this project… and it will create the pipfile.lock for [dev-packages] and [packages].
- To activate this project's virtualenv, run
pipenv shell
- Create project in flask and install
pipenv install flask
- Go to the your virtualenv in command prompt for windows
Note: Go to the your virtualenv in terminal for windows
set FLASK_APP=urlshort
export FLASK_APP=urlshort
- Run the flask app
flask run
- How to move on to the flask app to production to development in command prompt
set FLASK_ENV=development
- Then run app
flask run
Credits - Nick Walter for his amazing course on linkdein learning.