The Task API is a simple CRUD API project that follows OOP best practices and adheres to SOLID principles. It utilizes Sanctum for authentication. The tests have been implemented, powered by the 'Pest' testing framework, and integrated with GitHub Actions to automatically run tests on 'push' or 'pull' requests to the 'main' branch.
Clone the repository:
git clone https://github.com/mrminnkhantnaing/task-api.git
Create .env file from .env.example:
cp .env.example .env
Install composer packages:
composer install
Generate application key:
php artisan key:generate
Run migration and seeder:
php artisan migrate:fresh --seed
Run it in localhost:
php artisan serve
Authenticate using the following details
- Email: frank@example.com
- Password: password
Run the test
php artisan test