Platform control plane (Next.js): tenants, provisioning, plans, billing and the ecom portal.
Part of Jeffi ERP, where the Jeffi Stores commerce platform is developed in the open. In the workspace this repo is controller-service/. It builds and tests inside the assembled workspace, not on its own.
git clone https://github.com/Jeffi-ERP/workspace.git jeffi-erp
cd jeffi-erp
node oss/assemble.mjs # clones every Jeffi ERP repo into its folder
ONNXRUNTIME_NODE_INSTALL=skip npm ciThen follow Set up the workspace for the database, .env.local and a local admin. You never need Jeffi Stores' own keys. To change this repo, fork it and add your fork as a remote inside controller-service/.
- Open a pull request against
main. Nothing runs yet. - A maintainer reads it and adds the
ok-to-testlabel. That runs PR checks and Guard. A new push removes the label until a maintainer looks again. - When both pass, a maintainer squash-merges it. The merge runs pre-build and build, then waits for a maintainer to approve the promotion.
- After approval the change is opened as a pull request on AloysJehwin/Jeffi_Stores and ships with a later release. The export from that release brings it back here.
.github/ and LICENSE (and oss/ in workspace) come from AloysJehwin/Jeffi_Stores, and Guard rejects pull requests that change them. Open an issue for those instead.
| Stage | Check | Command (from the workspace root) |
|---|---|---|
PR checks (after ok-to-test) |
Lint | npx next lint controller-service --dir src |
PR checks (after ok-to-test) |
Type check | npx tsc --noEmit -p controller-service/tsconfig.typecheck.json |
PR checks (after ok-to-test) |
Unit tests | npx vitest run --project controller --passWithNoTests |
| Pre-build (after merge) | Lint | npx next lint controller-service --dir src |
| Pre-build (after merge) | Type check | npx tsc --noEmit -p controller-service/tsconfig.typecheck.json |
| Build (after merge) | Unit tests | npx vitest run --project controller --passWithNoTests |
| Build (after merge) | Build | npm run build:controller |
Run a stage locally from the workspace root: node oss/checks.mjs controller-service pr.
GNU Affero General Public License v3.0 (AGPL-3.0-only). You may use, modify and redistribute this code, including in production. If you distribute a modified version, or run one as a service that people use over a network, you must make its source available to those users under the same licence. Jeffi Stores also offers a commercial licence for use without those conditions. Contributions are accepted on the terms in CONTRIBUTING.