A Laravel example that implemented some features of Blog.
This example is a collection of backend APIs that was implemented on Laravel 8.x .
- Generate the username from full surname and 3 letter from first name. The possibility of generating duplicate usernames has been managed.
- To make user authentication, Laravel Sanctum package has been used.
- Blog feed posts list sorted by comments count in descendent order.
- Use soft-deleted technique to delete posts and comments.
- Posts and comments can be cleaned from trash bin permanently, just by admin.
- Deleted posts and comments can be restore just by admin.
- Seeders have been used to generate 50K users, 1K posts and 50 comments for each post.
- Schedulers has been used to delete posts and comments that are more than 3 hours old.
- All of the endpoints have been tested with the TDD approach. Happy and unhappy pathes have been considered.
- User Register
- User Login
- Save post by admin
- Save comment on post by user
- Delete post by admin
- Delete comment by admin
- Get list of posts publicly
- Get list of comments of post publicly
- Get specific post information publicly
- Get list of deleted posts by admin
- Get list of comments of deleted post by admin
- Get list of deleted comments by admin
- Restore deleted post by admin
- Restore deleted comment by admin
- Clean deleted post permanently by admin
- Clean deleted comment permanently by admin