Skip to content

Files

Latest commit

1e2d4d5 · Apr 7, 2025

History

History
11 lines (7 loc) · 717 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 717 Bytes

React from scratch — dummy API

This laravel app is used to provide a few simple API endpoints for the React from scratch Laracasts series.

There is no authentication nor access restriction in there — it's just meant to be ran locally alongside the React app to have some endpoints to hit.

For things to work properly, you'll need to:

  • Seed the data: Run the Database seeder with php artisan migrate:fresh --seed. You should see 9 puppies in your database.
  • Create a symbolic link from source directory: Run php artisan storage:link to make stored images accessible publicly.
  • Run the Laravel app locally and make sure the React app uses the correct API URL when trying to hit it.