Skip to content
whu-hamPublic

About

Web client for the Ham Wuhan University campus companion.

Topics

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

75 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ham for Web

Build Unit Tests E2E Tests codecov DeepWiki

Web frontend for Ham (WHU) — an SSO + academic toolkit companion to the Ham mobile app.

🚧 Still work in progress.

User documentation: https://docs.ham.nowcent.cn

Tech Stack

Getting Started

Requires Node.js 20+ and pnpm.

# Install dependencies
pnpm install

# Start the dev server (Turbopack)
pnpm dev

# Production build
pnpm build
pnpm start

# Cloudflare Pages build
pnpm build:cf

# Lint
pnpm lint
pnpm lint:fix        # auto-fix what can be fixed

# Formatting
pnpm format          # write
pnpm format:check    # verify

# Type checking
pnpm typecheck       # app + e2e

# Unit tests (Vitest)
pnpm test

# End-to-end tests (Playwright)
pnpm test:e2e

Dev server runs at http://localhost:3000.

Features

  • SSO authorisation flow (consent view, QR login, deep-link to native app)
  • Passkey (WebAuthn) login
  • Mobile app login (deep-link → OAuth2 code callback)
  • API key management (create, rotate, revoke)
  • SSR auth guard (requireAuth) with redirect-back support
  • Dark / light / system theme switcher
  • Multi-language UI (zh / en / ja) with cookie persistence
  • Mobile H5 fallback (install prompt + Passkey option)
  • Third-party login
  • Course grade lookup
  • Course detail lookup
  • Course selection panel

Contributing

See CONTRIBUTING.md.

License

ham-web is MIT licensed.

About

Web client for the Ham Wuhan University campus companion.

Topics

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages