Back to projects

Full-stack mock bank · 2026

Bajenbanken

Full-stack developer (learning project)

Bajenbanken is a playful mock bank in green and white. You open an account, log in, deposit money with a note, and follow your transaction history. Your balance is also shown as how many beers it buys. The frontend is a Next.js app, but the project exists so I could learn the parts I had never touched before. An Express API stores users, accounts and transactions in a MySQL database. I started out running MySQL locally with MAMP, then moved the whole stack into Docker containers with Docker Compose. Passwords are hashed with bcrypt, and logging in returns a short-lived JWT (15 minutes) that is sent as a Bearer token and only kept in memory, never in localStorage. Every pull request and push to main runs a GitHub Actions pipeline: lint, build, Vitest unit tests and Playwright end-to-end tests that check the whole login flow, including that missing or tampered tokens are rejected. Only when everything passes is the new version deployed to an AWS EC2 instance over SSH.

  • Next.js
  • TypeScript
  • Tailwind CSS
  • Express
  • MySQL
  • JWT
  • bcrypt
  • Docker
  • GitHub Actions
  • AWS EC2
  • Vitest
  • Playwright

How it fits together

  1. Next.js frontend
  2. Express API
  3. MySQL database
  4. Docker Compose
  5. GitHub Actions
  6. AWS EC2
Bajenbanken start page