This project implements a simple website to shorten URLs. Users register and authenticate to use the service and it allows to manage and see and manage what URLs have they shortened previously.
Follow these steps to set up the project locally:
- PHP version 8.1 or higher
- Composer installed
-
Clone the repository:
git clone https://github.com/trahvex/URL-shortener
-
Navigate to the project directory:
cd URL-shortener
-
Install the dependencies using Composer:
composer install
-
Create a new database for the project.
-
Open the
.env
file and update theDATABASE_URL
line with your database credentials:DATABASE_URL="mysql://your_username:your_password@your_host/your_database"
Replace
your_username
,your_password
,your_host
, andyour_database
with your actual database connection details. -
Run the database migrations to set up the required tables:
php bin/console doctrine:migrations:migrate
You can now start the local development server to run the application:
symfony server:start
Open your browser and visit http://localhost:8000 to access the application.