Skip to content

anxdre/Test-ProgrammerTATI-AndreSetiawanA

Repository files navigation

Laravel Logo

Test-ProgrammerTATI-Andre_Setiawan_A.

About This Project

In the selection of internship session at PT.TATI, I got a task to work on and submit by Friday, February 16, 2024. By 3:00 PM WIB.

Specification

This project includes several test from PT.TATI in one place with monolithic architecture (Laravel).

Task 1 (Daily Log & Confirmation Feature)

  • Daily Log

    • Namespace: log/
    • Controller Placement: app/Http/Controllers/DailyLogController.php
    • View Placement: resources/views/dailylog
    • URL Path: example.com/log/daily/{path} (route: web)
    • UI Stacks:
  • Verification

    • Namespace: verification/
    • Controller Placement: app/Http/Controllers/ LogVerificationController.php
    • View Placement: resources/views/dailylog
    • URL Path: example.com/verification/{path} (route: web)
    • UI Stacks:

Task 2 (Wilayah Api Service)

  • Api Service
    • DatabaseSql : Wilayah.sql
    • Namespace: api/provinsi
    • Controller Placement: app/Http/Controllers/Api/WilayahController.php
    • View Placement: -
    • Base Response Placement : app/Http/Resources/BaseResponseResource.php
    • URL Path: example.com/api/proovinsi/{path} (route: api)
    • How to use :
      • GET /api/provinsi for showing all province.
      • GET /api/provinsi/{id} for showing detail by id province.
      • POST /api/provinsi for adding new province.
      • PUT /api/provinsi/{id} for updating province by id.
      • DELETE /api/provinsi/{id} for deleting province by id.

Task 3 (Worker Performance Matrix)

  • Controller Placement: app/Http/Controllers/KinerjaController.php
  • PhpUnit Test Placement: tests/Http/Controllers/KinerjaControllerTest.php
  • Test Result : Passed ✅

Task 4 (Looping Number Sequence)

  • Controller Placement: app/Http/Controllers/DeretController.php
  • PhpUnit Test Placement: tests/Http/Controllers/DeretControllerTest.php
  • Test Result : Passed ✅

Development : Laravel

To start development.

  1. Install dependencies with composer install.
  2. Duplicate & Rename .env.example to .env.
  3. Setup database conf in .env.
  4. Generate key with php artisan key:generate
  5. Run php artisan migrate:fresh to populate the database.
  6. Run php artisan db:seed to fill dummy data into database.
  7. Run php artisan serve to run at local server.

*note : for wilayah API service you need to execute sql file at here into your database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published