https://github.com/areal060781/books-service-unit-testing
REST API made with Lumen 7 and Test Driven Development practices
https://github.com/areal060781/books-service-unit-testing
fractal lumen7 mockery mysql phpunit tdd
Last synced: about 2 months ago
JSON representation
REST API made with Lumen 7 and Test Driven Development practices
- Host: GitHub
- URL: https://github.com/areal060781/books-service-unit-testing
- Owner: areal060781
- Created: 2020-07-20T17:46:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T21:00:23.000Z (about 2 years ago)
- Last Synced: 2025-01-19T23:36:34.328Z (3 months ago)
- Topics: fractal, lumen7, mockery, mysql, phpunit, tdd
- Language: PHP
- Homepage:
- Size: 219 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book API Rest
A RESTful web service, two resources: Books and Authors* CRUD operations of the books and authors API
* REST API (Routes, controllers, Eloquent, Relationships)
* Database migrations and Database seeders
* Input validation
* Proper 404 pages
* API versioning **Dingo**
* Rate limits/Throttling
* Transformers/Serializers and Meta information **Fractal**
* Test Driven Development **PHPUnit** **Mockery****Requirements**
- [x] PHP 7.4
- [x] MySQL
- [x] Composer### Setup
Install the dependencies
```
composer install
```Create a book and book_testing databases
Change the Database configuration
```
cp .env.examples .env
```
Run the migration and seeders
```
php artisan migrate && php artisan db:seed
```
Run the application
```
php -S localhost:8000 -t public
```