Project Name: Muster Buddy Check
Current Version: v2.0.0
Muster Buddy Check is a lightweight attendance-tracking web application designed for colleges, clubs and events. Attendees simply scan a QR code or click a shareable link—no account needed.
- Prerequisites
- Installation
- Supabase setup
- Environment variables
- Running the RLS policy script
- Development workflow
- Local testing from other devices
- Using the QR-code attendance flow
- Deployment
- Change log (v1.1.0 → v2.0.0)
- Editing options (Lovable, IDE, Codespaces)
• Node.js (v18+) and npm or pnpm
• A Supabase project (free tier is fine)
• Git (optional but recommended)
git clone <YOUR_GIT_URL>
cd muster-buddy-check
# install dependencies
npm install # or: pnpm install- Create a new Supabase project.
- Open SQL Editor → New Query and run the schema located in
supabase/migrations(all*.sqlfiles). - Create a service role API key (Settings → API).
- Copy the anon/public API key (also in Settings → API).
- Continue with the Environment setup below.
All variables live in a .env file (never commit secrets). A template is provided:
cp .env.example .env
# then edit .env with your keysRequired keys:
SUPABASE_URL=https://<project-id>.supabase.coSUPABASE_SERVICE_KEY=<SERVICE_ROLE_KEY>(used only by the CLI script)VITE_SUPABASE_ANON_KEY=<PUBLIC_ANON_KEY>(exposed to the browser)
We ship an automated helper to apply Row Level Security (RLS) policies that make attendance pages public while still securing private data.
npm run apply-rls
# or: node scripts/apply-rls-policies.jsThe script connects with your SUPABASE_SERVICE_KEY, enables RLS, and installs all required policies.
# start local dev server at http://localhost:5173
npm run devOpen the site, create a muster sheet, then visit /qr/<sheetId> to view the auto-generated QR code.
Need to check the QR code or attendance link from a phone or tablet on your local network?
Follow these steps:
-
Expose the Vite dev server on your LAN
# one-off npm run dev -- --host # or permanently add to package.json → "dev": "vite --host"
The
--hostflag tells Vite to listen on all interfaces (0.0.0.0) instead oflocalhost. -
Find your computer’s local IP address
On macOS/Linux:ifconfig | grep "inet "→ look for something like192.168.x.x.
On Windows:ipconfig→ “IPv4 Address”. -
Open the site from another device
In a mobile browser type:http://<YOUR_IP>:5173(replace
<YOUR_IP>with the IP from step 2, keep port 5173 unless you changed it). -
Scan QR codes generated during development
The QR component will embed this IP in links, so phones on the same Wi-Fi can open the attendance page directly. -
Firewall / VPN notes
• Ensure your OS firewall allows inbound connections on port 5173.
• Some corporate or campus networks may block peer-to-peer traffic—you might need to use a tunnelling tool (e.g., ngrok).
Once deployed to a public host (Vercel, Netlify, Lovable, etc.) the QR code will automatically use the production URL, so this setup is only required for LAN testing.
- Log in (or continue as guest) and create a new muster sheet.
- Go to QR Code from the sheet card or
/qr/<sheetId>. - Download or print the QR code.
- Attendees scan the code or use the link
/attend/<sheetId>. - Submissions appear in real-time on the Results page.
The attendance page is completely public—no Supabase account required by the attendee.
The easiest path: open Lovable → Share → Publish.
Lovable handles build & hosting automatically.
- Create a new project and point it at this repo.
- Add the same env vars (
VITE_…) in the provider’s dashboard. - Build command:
npm run build - Publish directory:
dist
Remember: self-hosted CI/CD will not run the RLS script automatically—you must execute npm run apply-rls once, or run the SQL manually.
- Public attendance pages powered by new Row Level Security policies
- QR Code page (
/qr/:sheetId) with copy / download / test buttons - NPM script apply-rls for one-click database policy installation
- Improved error handling & friendly messaging on the attendance page
- Added
.env.exampletemplate and dotenv support - Upgraded dependencies (React 18.3, Supabase JS v2.50, etc.)
- Project version bumped from v1.1.0 → v2.0.0 in
package.json
Previous minor patches included small UI tweaks, guest-mode login, and performance improvements.
There are several ways of editing your application.
Use Lovable
Simply visit the Lovable Project and start prompting.
Changes made via Lovable will be committed automatically to this repo.
Use your preferred IDE
If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
The only requirement is having Node.js & npm installed - install with nvm
Follow these steps:
# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>
# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>
# Step 3: Install the necessary dependencies.
npm i
# Step 4: Start the development server with auto-reloading and an instant preview.
npm run devEdit a file directly in GitHub
- Navigate to the desired file(s).
- Click the "Edit" button (pencil icon) at the top right of the file view.
- Make your changes and commit the changes.
Use GitHub Codespaces
- Navigate to the main page of your repository.
- Click on the "Code" button (green button) near the top right.
- Select the "Codespaces" tab.
- Click on "New codespace" to launch a new Codespace environment.
- Edit files directly within the Codespace and commit and push your changes once you're done.
This project is built with:
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
Simply open Lovable and click on Share -> Publish.
Yes, you can!
To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.
Read more here: Setting up a custom domain