Skip to content

Releases

v1.0.0: 10 PRINT "STABLE"

Choose a tag to compare

@dcarrero dcarrero released this 05 Dec 22:53
READY.
LOAD "LARAVEL",8,1
SEARCHING FOR LARAVEL
LOADING
READY.
RUN

The first stable release of the BASIC framework for web artisans who number their lines in tens. Stable in the sense that line numbers never move. We do not RENUM.

What you get

  • Routing with parameters. Routes are DATA statements; /users/{id} works, GET /goto redirects to itself forever.
  • Controllers as GOSUBs, dispatched by an ON...GOSUB line that gosubtisan build generates for you.
  • Blade-style templates (.blade.bas): {{ }} is HTML-escaped at line 3500, {!! !!} is not. Layouts are "line 3000, three times".
  • GOTOquent, an ORM that reads CSV files. Migrations: a text editor.
  • JSON API (/api/users, /api/users/{id}), hand-stitched with CHR$(34).
  • Error pages: ?UNDEF'D STATEMENT ERROR IN 404, with real interpreter details only when APP_DEBUG=true.
  • gosubtisan, the CLI: build, serve, route:list, make:controller, test, inspire, about. renum is deliberately not implemented.
  • 14 tests, written in curl and grep, run on every push and inside the Docker image.

Docker, done properly (for a joke)

  • docker run --rm -p 8000:8000 ghcr.io/dcarrero/laravel-basic (amd64 and arm64, also tagged 1.0.0).
  • Non-root user, read-only filesystem, no capabilities, tmpfs logs the app user can actually write, and a healthcheck that asks ARE YOU ALIVE? every 30 seconds.
  • Security headers on every response (CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy), request size limits and an execution timeout.

Fixed on the way to 1.0

  • Logs were written to the void: the tmpfs was owned by root. Now it belongs to BASIC.
  • ./gosubtisan test could not rebuild inside the image because build/ was root's.
  • Without a .env, ENVIRON$ returned garbage and the app name came out as noise. Sane defaults, plus a test.
  • The header no longer escapes the screen on phones. Responsive, unlike a 14-inch CRT.

Also new

  • Homepage: https://dcarrero.github.io/laravel-basic/
  • Real screenshots and a demo GIF in the README.
  • Docs in docs/: architecture, gosubtisan, deployment, testing, contributing.
  • Issue templates, including one for porting it to FORTRAN.

Known limitations

POST requests, CSRF protection, sessions and local variables are not included. Neither is a reason to use this in production.

READY.
█