Skip to content

randotm/opus_test

Repository files navigation

The app is a PHP Laravel app with React frontend, made as a test assignment for Opus Online.


Software requirements to run:

PHP: ^7.2.5

MySQL database: ^5.7.31

Composer installed

To run the app:

  1. download git repo
  2. run composer install
  3. make a copy of .env.example and name it .env with cp .env.example .env
  4. to generate app key, run php artisan key:generate
  5. change values in .env to make them match your setup
  6. to generate database, run php artisan migrate
  7. to start the app, run php artisan serve

Parts of the requirements I was not able to do:

  • 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)

Timeconsumption

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published