This is a Laravel API for managing a Pokémon card collection. The API includes endpoints for user authentication, adding, updating, deleting, viewing, and searching Pokémon cards. Each card can be filtered and sorted by various attributes and is associated with the currently logged-in user.
- User registration and authentication using Laravel Passport
- CRUD operations for Pokémon cards
- Filtering and sorting of cards based on various attributes
- Pagination support for card listings
- Protected routes ensuring only authenticated users can access card data
- PHP >= 8.2
- Laravel >= 11.9
- PostgreSQL
- Composer
- Node.js and npm (for frontend if applicable)
git clone https://github.com/diontristen/pokemon-laravel-be.git
cd pokemon-laravel-be
composer install
npm install
cp. .env.example .env
php artisan key:generate
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
php artisan migrate
php artisan passport:install
php artisan serve
To run the unit tests, use the following command:
php artisan test