Skip to content

Repository files navigation

Get-e live coding starter

A ready-to-run Laravel 13 application for the live coding session. Everything runs in Docker, so nothing needs to be installed on your machine beyond Docker Desktop.

Start it

make up

The first run builds the PHP image, installs the Composer dependencies and runs the migrations, so give it a minute or two. When it prints Ready. you have:

What Where
Landing page http://localhost:8000
Flights UI http://localhost:8000/flights
Example API http://localhost:8000/api/ping
Flights API http://localhost:8000/api/flights (see below)
Health check http://localhost:8000/up
MySQL 8.4 localhost:33062app / app / secret
Redis 7 localhost:63792

Edit files on your machine with your normal editor; the project directory is mounted into the container, so changes are live on the next request. No rebuild needed.

The commands you will want

make test                                  # run the test suite
make testf F=tests/Feature/ExampleTest.php # run one test file
make art C="make:model Booking -mf"        # any artisan command
make composer C="require guzzlehttp/guzzle"
make tinker                                # REPL
make fresh                                 # wipe and re-migrate the database
make db                                    # MySQL shell
make logs                                  # tail storage/logs/laravel.log
make app                                   # bash shell inside the container
make down                                  # stop everything

make on its own lists them all.

Notes

  • make fresh reseeds the demo user and their flights. The API token stays demo-token (set DEMO_API_TOKEN in .env to change it).
  • Prefer a file database over MySQL? Uncomment the SQLite lines in .env, then touch database/database.sqlite and make restart.
  • .env is committed on purpose here — this is a throwaway interview environment, not something you would do in a real project.

About

Starter project with necessary boilerplate code to start a live coding session

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages