Overview
The URL Shortener Application is a Python Django project that provides users with a simple interface to shorten long URLs, making them easier to share and manage. This application enhances user convenience by allowing for quick access to lengthy web addresses through concise links.
This project utilizes Continuous Integration and Continuous Deployment (CI/CD) practices through GitHub Actions.
The configuration file .github/workflows/jekyll-docker.yml automates the build process whenever there are pushes or pull requests to the main branch.
This workflow ensures that the site is built in a Docker container every time you push changes to the main branch or create a pull request.
This automation enhances the reliability and performance of the site, allowing for seamless updates and feature implementations.
-
Install Python: Ensure Python is installed on your system. Download the latest version from the official Python website and follow the installation instructions for your operating system.
-
Set Up a Virtual Environment (optional but recommended): Creating a virtual environment helps isolate project dependencies. Open a terminal or command prompt, navigate to your project directory, and run the following command:
python -m venv myenv
This will create a new virtual environment named "myenv" in your project directory.
Activate the virtual environment: Activate the virtual environment you created. The process for activating the virtual environment depends on your operating system:
On Windows:
myenv\Scripts\activate
On macOS/Linux:
source myenv/bin/activate
python manage.py runserver