WorkTest

Assumptions & Considerations

Read Assumptions & Considerations

Challenges Faced and How to Overcome

Read Challenges Faced & How to Overcome

Database Diagram

Installation

Before installing, make sure the requirements below are met

  • PHP 8.1 or later with
  • SQLite or MySQL

1. Clone Repository

git clone https://github.com/SupianIDz/WorkTest

2. Set Up Database

Navigate to the project directory:

cd WorkTest

Create a copy of the .env.example file and name it .env:

cp .env.example .env

Create a SQLite database file

touch database/database.sqlite

Open the .env file and update the following fields with the absolute path to your project's SQLite database file:

DB_CONNECTION=sqlite
DB_DATABASE=/ABSOLUTE/PATH/TO/PROJECT/database/database.sqlite

Remember to replace /ABSOLUTE/PATH/TO/PROJECT with the actual absolute path to project directory.

3. Install Dependencies:

composer install

4. Run Migrations & Seeders

php artisan migrate --seed

5. Fork Api Collection

You can import data into Postman by dragging and dropping files postman.json, or by a URL. to your Postman App.

See the Postman documentation for more information regarding Import Collections.

or run in post directly:

Run In Postman

6. Run PHPUnit Tests (Optional)

php artisan test --coverage

7. Run Local Server

php artisan serve