franck-grenier / symfony-job-interview-test

An ugly poor little thing : your mission is to make it better

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

symfony-job-interview-test

We had a great idea of business: we should do the same thing than bit.ly! And here we are

Install notes

composer install
docker-compose up

Database structure

docker-compose exec db  mysql -uroot -pnotsecret symfony-job-interview -e "DROP TABLE IF EXISTS uri; CREATE TABLE uri (id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, url VARCHAR(1000) NOT NULL, token VARCHAR(255) NOT NULL, times_used INT UNSIGNED NOT NULL);"

Fixtures

docker-compose exec db  mysql -uroot -pnotsecret symfony-job-interview -e "INSERT INTO uri VALUES (NULL, 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'some_token', 0);"

How to test

Go to https://127.0.0.1/redirect?token=some_token

About

An ugly poor little thing : your mission is to make it better


Languages

Language:PHP 95.2%Language:HTML 4.8%