This repository hosts the frontend for SC Market.
The generated API should be preferred for new code. API slices and types are generated from the OpenAPI spec; see src/store/api/README.md for usage, regeneration, and config.
Please read through the guide for setting up the backend and ensure the variables in .env match those in your backend's .env file.
Android TWA (Trusted Web Activity) build tooling has been moved to a separate repository: sc-market-android. See that repository for Android app build instructions.
This project uses npm to manage dependencies. You can install dependencies using the npm command.
npm installRunning the project is simple and can be done with
npm run devBefore pushing, make sure your changes type-check, pass the tests, and build:
npm run check && npm test && npm run buildCI runs the same steps on every push to main (.github/workflows/ci.yml). It
doesn't block Cloudflare Pages deploys, so a red check means a broken main is
already live — fix it promptly.