Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/07rinat07/laravel-tdd-crud-rest-api
Basic Laravel TDD course. CRUD REST API with Laravel testing
https://github.com/07rinat07/laravel-tdd-crud-rest-api
api-rest laravel10-crud mysql-database postman
Last synced: 8 days ago
JSON representation
Basic Laravel TDD course. CRUD REST API with Laravel testing
- Host: GitHub
- URL: https://github.com/07rinat07/laravel-tdd-crud-rest-api
- Owner: 07Rinat07
- Created: 2023-08-03T19:29:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-05T07:02:48.000Z (over 1 year ago)
- Last Synced: 2024-04-14T05:55:30.052Z (9 months ago)
- Topics: api-rest, laravel10-crud, mysql-database, postman
- Language: PHP
- Homepage: https://youtu.be/leaXsWyfQRs
- Size: 175 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Laravel-TDD-Crud-Rest-Api
### Project written on Laravel: Instructions and additional information for installing and testing the application:
* composer install or composer update
* Create a DB (in the .env file and the database, enter the correct data for configuration)
* php artisan migrate### To run the project locally, you need to type commands in the terminal in turn ==>
* php artisan serve### For tests:
* cp .env .env.testing
* php artisan make:test TicketTest --unit
* php artisan migrate --seed --env=testing
* php artisan migrate:refresh --seed --env=testing
* composer dump-autoload
* php artisan test### Additional actions in case of errors...
* php artisan route:cache
* php artisan route:clear
* php artisan config:clear
* php artisan cache:clear
* php artisan optimize
### Content. Themes.
* Post test.
* We pass the image in the test.
* Post title validity test.
* Image fidelity test.
* Post update test.
* Test on the posts index page and get all the posts.
* Test on the posts page show and get one post.
* Installing laravel breeze.
* Test for deletion by a post-authorized user.
* Test to delete a post only by an authorized user
* Test for adding a post to the API.
* Test for the validity of the post title in the API.
* API Image Validity Test.
* API post update test.
* Attributes with date type in API testing.
* Test to get a list of posts in the API
* Test for getting one post in the API.
* Test for deleting a post by an authorized user in the API.
* Test to delete a post only by an authorized user in the API.
* Unit Test example.