Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Subscription Manager

A small React + Vite TypeScript app to view and manage subscriptions. This repository contains a compact UI for listing subscriptions and cancelling them locally (client-side demo). It's built with React, TypeScript and Tailwind CSS.

Features

  • List subscriptions
  • Cancel subscriptions (client-side state change)
  • Accessible-first components (semantic HTML, ARIA attributes)

Tech stack

  • React 19 + TypeScript
  • Vite for dev server and build
  • Tailwind CSS for styling
  • Vitest + Testing Library for tests

Getting started (local development)

Prerequisites: Node.js (18+ recommended) and npm.

  1. Install dependencies
npm install
  1. Run the dev server
npm run dev

This starts the Vite dev server (default port 5173). Open http://localhost:5173 in your browser.

  1. Build for production
npm run build
  1. Preview the production build
npm run preview

Scripts

  • npm run dev — start Vite dev server
  • npm run build — compile TypeScript and build for production
  • npm run preview — preview the production build
  • npm run lint — run ESLint
  • npm run test — run unit tests (Vitest)

Testing

Unit tests use Vitest and Testing Library. Run:

npm run test

Accessibility

This project follows accessible-first patterns (semantic HTML, focus management, ARIA where appropriate). Recommended checks during development and CI:

  • Run Lighthouse accessibility audit in DevTools.
  • Manual testing with keyboard-only navigation and a screen reader (NVDA, VoiceOver).

Project structure (key files)

  • src/components/SubscriptionCard.tsx — card UI for a single subscription
  • src/components/SubscriptionsList.tsx — list and page wrapper
  • src/api/fetchSubscriptions.ts — data fetching (mockable)
  • src/utils/formatDate.ts — date formatting helper

Troubleshooting

  • If the dev server doesn't start, check for port conflicts or run with --port <n>.
  • For TypeScript errors, run npx tsc --noEmit to inspect issues.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages