Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
Update README.md
Brad Barbin09b0ce111f25
diff --git a/README.md b/README.mdindex a945759436..4bb6285cdb 100644--- a/README.md+++ b/README.md@@ -179,7 +179,28 @@ For example, to run test command in the `@carbon/react` package you can run:$ npm run test -w @carbon/react```-## Restoring a Production Database Locally+### Using the API++Navigate to settings in the ERP to generate an API key. If you're self-hosting you can also use the supabase service key as the API key for root access.++```ts+import { Database } from '@carbon/database'+import { createClient } from '@supabase/supabase-js'++const apiKey = process.env.CARBON_API_KEY+const apiUrl = process.env.CARBON_API_URL+const publicKey = process.env.CARBON_PUBLIC_KEY++const carbon = createClient<Database>(apiUrl, publicKey, {+ global: {+ headers: {+ "carbon-key": apiKey,+ },+ },+});+```++### Restoring a Production Database Locally1. Download the production database backup from Supabase2. Rename the migrations folder to `_migrations`