Url Shortener is a technical challenge designed by Spot2 to test the knowledge of full-stack developer candidates in their first stage.
Before you start make sure you have composer installed on your system, as well as Node Js, and a Redis server and Mysql server running.
Also, in php have extensions enabled:
extension=php_redis.dll
extension=pdo_sqlite
extension=sqlite3
Clone the repository locally:
git clone https://github.com/dev-yohannylugo/url-shortener-spot2.git
cd url-shortener-spot2
Install PHP dependencies:
composer install
Install NPM dependencies:
npm install
Build assets:
npm run dev
Setup configuration:
cp .env.example .env
Generate application key:
php artisan key:generate
Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
touch database/database.sqlite
Run database migrations:
php artisan migrate
Run database seeder:
php artisan db:seed
Run artisan server:
php artisan serve
You're ready to go! Url Shortener in your browser, and login with:
- Username: [email protected]
- Password: Spot2Pass
To enter the production version is: http://ec2-18-221-204-190.us-east-2.compute.amazonaws.com/
To run the Ping CRM tests, run:
php artisan test
The Url Shortener is open-sourced software licensed under the MIT license.