My documentation for IMT Tech assessment for Full Stack Laravel Developer
-
git clone https://github.com/azri-cs/imt-assessment
-
cd imt-assessment -
cp .env.example .env && cp backend/.env.example backend/.env - Adjust the value of both
.envfiles accordingly. -
docker compose up -d --build
-
docker compose exec backend php artisan key:generate -
docker compose exec backend php artisan migrate
Now you can access the Vue application on http://localhost while Laravel backend on http://localhost/api.
Further step would be to configure physical Nginx to point a domain to the exposed port and configure SSL.
'errCode'is using the same 1001 value due to documentation provided have been using it for all error response code.- No logging on
catch (HttpResponseException)as it is intentional to catch the validation error. - Since all these exceptions will be handled the same way (same response, same logging), there is only 2 catch blocks. If not, there should be each catch block for QueryException, ModelNotFoundException, and PDOException.