Skip to content

dev-yohannylugo/url-shortener-spot2

Repository files navigation

Spot2 Logo

Build Status Total Downloads Latest Stable Version License

About Url Shortener

Url Shortener is a technical challenge designed by Spot2 to test the knowledge of full-stack developer candidates in their first stage.

Requirements

Installation

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:

To enter the production version is: http://ec2-18-221-204-190.us-east-2.compute.amazonaws.com/

Running tests

To run the Ping CRM tests, run:

php artisan test

License

The Url Shortener is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages