There's a demo youtube link here.
Tested in Linux based OS. After cloning from the repository. Go to the project root directory.
- Python3
- Pip3
- Python3-flask
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
export FLASK_APP=shortenURL
flask run
- Docker
Build the Dockerfile with the build command
docker build -t <container-name> .
Run the container with the run command and open the port for the web server
docker run -p 5000:5000 <container-name>
>>> import shortenURL
>>> app = shortenURL.create_app()
>>> app.run()
Visit http://127.0.0.1:5000 in your web browser to see the webapp in action!
There's only two different routes except the homepage. They are /all
and /delete
Try to explore what the routes return.