A small application for shortening your long links. (Coincidence of the app name is accidental :))
- PHP >= 7.3.5
- Database, e.g. MySQL 5.7
- composer installed
git clone https://github.com/BartDz/shortify.git shortify
Go to the application directory
cd shortify
Install vendors and dependencies (it may take several seconds)
composer install
Create a database and edit .env.example file. Add your database data replacing below settings:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE="your_db"
DB_USERNAME="your_db_username"
DB_PASSWORD="your_db_password"
Rename file .env.example to .env
mv .env.example .env
Create datatabase tables
php artisan migrate
Start a server on localhost:3000
php artisan serve --host localhost --port 3000
Go to http://localhost:3000 and follow the instructions.
Run command:
php artisan test
to start tests