URLShortener is a web application built using Django, HTML, CSS, and JavaScript. It allows users to shorten long URLs for easier sharing and management.
- URL shortening and management
- Frontend: HTML, CSS, JavaScript
- Backend: Django
- Database: sqlite3
- Python (3.8 or above)
- Git
-
Clone the repository:
git clone https://github.com/codequillskills/URL-Shortener
-
Create a virtual environment:
python -m venv ./env cd env/scripts activate
-
Install dependencies:
pip install -r requirements.txt
-
Add the
.env
file in the root directory with the following content:SECRET_KEY=Your_Secret_key DEBUG=False ALLOWED_HOSTS=localhost,127.0.0.1
-
Set up your database:
python manage.py makemigrations python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Access the application at
http://localhost:8000/
- Shorten your URLs.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more information.