This repository contains the demo from my talk in Laracon EU 2022.
- Clone the repository:
git clone git@github.com:sileence/laracon-eu-2022.git
- Go to the directory:
cd laracon-eu-2022
- Copy/paste the environment file:
cp .env.example .env
- Run
composer install
- Run
php artisan key:generate
- Create the SQLite database file:
touch database/database.sqlite
- Run the migrations and the seeders:
php artisan migrate && php artisan db:seed
- Start the server with
php artisan serve
- Open the project in your favorite browser:
http://127.0.0.1:8000/
- Go to the first branch:
git checkout step0
- Explore the next branches to see the changes, i.e.:
git checkout step1
- Follow me on Twitter for more interesting demos and tips.
- LendInvest for giving me the support to prepare and present the talk in record time. If you're looking for new career opportunities, please visit the careers page.
- Marek Lenik for contributing the design and frontend code of this demo project.
Add the following shortcuts to your ZSH configuration file to move quickly between branches, see and compare their changes:
step() {
git checkout step-$1
}
fstep() {
git reset --hard && git clean -df && git checkout step-$1
}
compare() {
git diff step-$1...step-$2
}
changes() {
git diff step-$1...step-$2 --name-only
}