The purpose of this webpage is to take any full URL and generate a short version of it.
This project was built using Laravel, InertiaJS, and VueJS for a task in one company's hiring process.
- PHP
- Composer
- XAMPP / LAMP / WAMP
- First clone or download the project.
git clone https://github.com/Str3ltsov/url-shortener.git
- Install all of the PHP dependencies.
composer install
Note: If you run into any errors during the install process. Run:
composer update
- Generate an app encryption key.
php artisan key:generate
- Create a database for your project.
- Enter your database credentials in the .env file to connect.
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_userpassword
- Migrate the database.
php artisan migrate
- Install all of the JavaScript dependencies.
npm install
- Compile the project.
npm run dev
- After the project compiles, you may finally run it.
php artisan serve