Skip to content

My documentation for IMT Tech assessment for Full Stack Laravel Developer

License

Notifications You must be signed in to change notification settings

azri-cs/imt-tech-assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imt-tech-assessment

My documentation for IMT Tech assessment for Full Stack Laravel Developer

Installations

  1. git clone https://github.com/azri-cs/imt-assessment
  2.  cd imt-assessment
  3.  cp .env.example .env && cp backend/.env.example backend/.env
  4. Adjust the value of both .env files accordingly.
  5. docker compose up -d --build
  6. docker compose exec backend php artisan key:generate
  7. 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.

NOTES

  1. 'errCode' is using the same 1001 value due to documentation provided have been using it for all error response code.
  2. No logging on catch (HttpResponseException) as it is intentional to catch the validation error.
  3. 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.

About

My documentation for IMT Tech assessment for Full Stack Laravel Developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published