Build a Stock Tracker App
Series episodes
Initial Behavior (3)
Initial Relationships
11m 5sStart building your app by writing tests that define core relationships and behaviors, laying a solid foundation for reliable, maintainable code.
Product Tracking
15m 3sWrite a feature test for a Laravel Artisan command that tracks all products in your system, ensuring reliable and efficient product monitoring.
Refactoring To Database Seeders
6m 24sLearn how to refactor tests by extracting setup into custom database seeders, making your test code cleaner, faster, and easier to maintain.
Retailer Clients (5)
Different Strategies for Different Clients
18m 32sExplore how to organize retailer clients with OOP techniques like strategies, interfaces, and factories to build clean, flexible, and maintainable code.
Fake it Till You Make it
6m 40sMaster manual fakes to test stock updates confidently without hitting real APIs. Learn practical techniques to keep your tests fast and reliable.
Techniques for Testing Against a Real API
16m 16sLearn how to test your app against a real API with practical techniques to ensure your Client works perfectly without overloading third-party services.
Start a Bug Fix With a Test
6m 22sWrite a regression test to catch hidden bugs and fix them confidently. Learn how testing helps maintain code quality and prevent future issues effectively.
Manual Review
3m 41sManually test your new Artisan command to update stock status by pinging APIs. See how to verify functionality before creating a local database in your app.
Product History (2)
Record Product History
9m 25sTrack product history to monitor price changes over time. Learn how to log and visualize product data for smarter insights and better decision-making.
History Refactoring
9m 45sRefactor your stock tracking history code for clarity and better structure. Learn practical tips to improve maintainability and keep your app clean and efficient.
Clean Code (2)
Simpler Code With UseCase Classes
22m 13sSimplify your code by creating a TrackStock use case class. Learn to organize core logic clearly for easier maintenance and better testability in your app.
Detailed Console Output
10m 48sEnhance your Artisan command with detailed console output using progress bars and tables. Learn to provide clear, helpful feedback when running commands manually.




