PHP: ^7.2.5
MySQL database: ^5.7.31
Composer installed
- download git repo
- run composer install
- make a copy of .env.example and name it .env with
cp .env.example .env - to generate app key, run
php artisan key:generate - change values in .env to make them match your setup
- to generate database, run
php artisan migrate - to start the app, run
php artisan serve
- Authentication and requiring it with react
- Unit tests
- API routes are vulnerable to csrf (was not explicitly mentioned in the requirements, but disabled it, which is not the safest or the intended use)
- Total: ~13h
- Laravel + DB setup: ~1.5h
- Initial saving to DB and setting up anagram comparison: ~1.75h
- Saving to DB (now over over file upload) finished: ~1.75h
- Applying and making app work with react front end: ~5h
- Trying to figure out auth with react (unsucessful in the end): ~1.5h
- Trying to figure out unit testing (unsucessful in the end): ~1.5h