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.
- UI Template HTML.
- UI Template Documentation.
This project includes several test from PT.TATI in one place with monolithic architecture (Laravel).
- Project Sheet Requirement
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:
- Namespace:
-
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:
- Namespace:
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 ✅
To start development.
- Install dependencies with
composer install
. - Duplicate & Rename
.env.example
to.env
. - Setup database conf in
.env
. - Generate key with
php artisan key:generate
- Run
php artisan migrate:fresh
to populate the database. - Run
php artisan db:seed
to fill dummy data into database. - 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