← All workBack-end development module · coursework

Boss Breaker

A wellness app where finishing challenges lets you fight a boss.

I built it for a back-end development module. You do wellness challenges to earn points, then spend them fighting a boss with everyone else.

Boss Breaker's Boss Raid on a laptop and a phone: the Stress Dragon at 1,840 of 5,000 HP, an attack of 80 points typed in, and the damage leaderboard.
Boss Raid on a laptop and a phoneBoss Raid on a phone
My role
Built it alone: frontend, API, database and game logic
Stack
JavaScript · Node.js · MySQL
Status
Coursework · source on GitHub

What I built

  • damage = challenge.points × item multiplier + bonus_damage

  • An Express API and a nine-table MySQL schema created at start-up

  • bcrypt-hashed passwords, and JWT logins on most routes

How it works

Do a challenge, earn points, hit the boss.

  1. ChallengesYou earn points by doing wellness challenges.
  2. PointsThe server works out points and boss damage, not the browser.
  3. Boss raidsEveryone spends points attacking the same boss, and a leaderboard shows who did the most damage.
  4. ProgressIt’s saved in MySQL, so reloading the page doesn’t reset it.

Screenshots

The game running.

Boss Raid: the Stress Dragon at 1,780 of 5,000 HP, 80 points typed in with an estimated 350 damage including the active item's bonus, and the damage leaderboard.
Boss Raid: spend points, see the damage before you hit
The Boss Breaker challenge list, each wellness challenge showing its point value
Challenges, each worth points

Running on my laptop with demo data. I wrote all the code in the repo.

Full sizeScroll or pinch to zoom · drag to move · double-click to zoom in
100%Original ↗