Shortener PHP assessment
You are supposed to create a simple URL shortener (think: bit.ly )
Task description | Given estimate | Real estimate |
---|---|---|
Investigation existing shortener solutions (shorting functions) | 1h | 1h |
Create DB schema | 30m | 1h |
Describe class relation | 25m | 25m |
Create Dockerfile (Symfony 4) and tools | 15m | 15m |
Create Contollers | 1h | 2h |
Create Entities | 30m | 1h |
Create Form | 30m | 1h |
Create Shortener Service | 1h | 1h |
Integrate and test app | 3h | 3h |
Total | 8h | 10h |
Docker.io and docker-compose must be installed in the system in order to be able to use the app.
OS Linux
git clone https://github.com/belushkin/shortener.git
cd shortener; ./toolbox.sh up
docker-compose exec web php bin/console doctrine:schema:create
./toolbox.sh tests
http://localhost:8080 (adminer)
Application has toolbox.sh script. It is very easy run, stop, ssh, rebuild, run tests and stop the application.
./toolbox.sh up # run the application
./toolbox.sh rebuild # rebuild the image
./toolbox.sh ssh # ssh to the container
./toolbox.sh tests # run tests
./toolbox.sh down # stop the application
MIT License