Skip to content

ib729/scps

Student Council Payment System (SCPS)

License: MIT Platform Ask DeepWiki Donate Bitcoin

A complete NFC-based payment system for managing student snack bar purchases. Tap contactless cards for instant payments with real-time dashboard monitoring.


Features

  • NFC Card Payments - Fast, cashless transactions with contactless cards
  • Student Account Management - Track balances, cards, and transaction history
  • Modern Web Dashboard - Built with Next.js, TypeScript, and Tailwind CSS
  • CLI Tools - Quick command-line utilities for POS, top-ups, and enrollment
  • Real-time Updates - Live tap notifications in the web interface
  • Dual Reader Support - Run multiple NFC readers simultaneously

Platform

Built for Raspberry Pi 4 Model B running Raspberry Pi OS (64-bit)

Tested on:

  • Raspberry Pi 4 Model B (8GB RAM recommended)
  • Raspberry Pi OS (Bookworm or later)
  • Debian-based Linux distributions
  • Arch Linux

Quick Start

1. Initialize the Database

python init_db.py

2. Install Web Dependencies

cd web-next
pnpm install

3. Run the Web Interface

Development mode:

pnpm dev

Production mode:

pnpm build
pnpm start

Open http://localhost:3000 and create your admin account.

4. Next Steps


CLI Tools

Quick operations from the command line:

  • pos.py - Process payments via NFC card taps
  • topup.py - Add money to student accounts
  • enroll.py - Register new students and link NFC cards
  • tap-broadcaster.py - Broadcast NFC taps to the web interface in real-time

Example:

python pos.py 6.5  # Charge ¥6.5 per tap

Documentation

Getting Started

Configuration

Usage

Development

Support


Supporting This Project

If you find this project helpful and would like to support its development, consider making a donation:

Bitcoin (BTC):

bc1pyv54eqxuanqgv3cm2yjl37xjxlavnh7fcfu9d3yg983uzp4qazcs5xgsz2

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A complete NFC-based payment system for managing student snack bar purchases.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published