WeeIt - URL Shortener application built using Django
Try Out The App : https://weeit.herokuapp.com/
Features of the application:-
- Able to short URL up to 200 characters long.
- Able to give custom unique shortcodes to the URLs.
Steps to run the application:- Assumption python 3 is installed properly
- Clone this repository.
- Open the folder created and open cmd in it.
- Install virtual environment by
pip install virtualenv
- Create a virtual environment by
virtualenv venv
- Activate the virtual environment by
venv\Scripts\activate
- Install all the packages from requirments.txt file by
pip install -r requirements.txt
- Now create some User Environment Variables with names like.
- DEBUG_VALUE(set value True for testing)
- SECRET_KEY(set value to a newly generated secret key using secrets module in python using
token_hex(24)
)
- Change the value of WEEIT_URL to http://localhost:8000/ in setting.py file
- Make migrations by
python manage.py migrate
- Create a superuser to admin testing by
python manage.py createsuperuser
and enter the details asked. - Then run the server by
python manage.py runserver
Testing of Features:-
- Enter the long URL. Click on Short URL button, you will get the shortened URL.
- Click on New and enter any long URL again.
- Check on the Custom Shortcode checkbox and enter a uniques custom shortcode and click Short URL.
- You will get a short URL with your custom shortcode.