This is the official repo for assignment 1 of WS&CBS
You can setup the entire project through simple cli commands. Just open your teminal and paste the below commands.
- CLone the repo
git clone https://github.com/ShashankAthreya/url-shortner.git
- Create the python environment
bash env.sh
- Activate the environment
source env/bin/activate
- Install the required python packages and run flask
bash start.sh
NOTE: This starts flask with an IP accessible for all. To change that, go to start.sh and edit line 4 to 'flask run'
Abdelhadi Dyouri for his article on How To Make a URL Shortener with Flask and SQLite