Quickstart Guide
Follow this guide to get up and running with the workshop environment in the fastest way possible.
Prerequisites
Before you begin, ensure you have the following installed:
- Git
- Node.js (includes npm)
- PHP and the Laravel Installer
You can install the necessary PHP and Laravel components on MacOS with the following command
/bin/bash -c "$(curl -fsSL https://php.new/install/mac/8.4)"
Additionally, you’ll need a Sentry account to follow along with the error monitoring portions of this workshop:
- Sign up for a free Sentry.io if you don’t already have an account
Setup Instructions
-
Clone the repository
Terminal window git clone https://github.com/nikolovlazar/errorfix-laravel -
Navigate to the project directory
Terminal window cd errorfix-laravel -
Install PHP dependencies
Terminal window composer install -
Install Node dependencies
Terminal window npm install -
Set up environment
Terminal window cp .env.example .envphp artisan key:generate -
Prepare the database
Terminal window touch database/database.sqlitephp artisan migrate:freshphp artisan db:seed -
Build frontend assets
Terminal window npm run build -
Start the development server (SSR mode)
Terminal window composer dev:ssr
What’s Available After Setup
Once you’ve completed the setup, you’ll have access to:
- Unborked - A React frontend with Laravel/PHP backend
- Local development environment running at http://localhost:8000
- A seeded database that has all the items from the store
This setup will allow you to progress in the workshop and start digging into the issues in the application.
Next Steps
Once your environment is running, head to the Code Breaks module to start learning how to identify and fix errors using Sentry.