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
docs: enhance setup guide with detailed Resend and Novu configuration
fiber[bot]ec09cd3ae31e
diff --git a/README.md b/README.mdindex 8db7df1a8b..332c2a02f9 100644--- a/README.md+++ b/README.md@@ -191,10 +191,39 @@ $ cp ./.env.example ./.env- `STRIPE_SECRET_KEY="sk_test_*************"`- `STRIPE_WEBHOOK_SECRET="whsec_************"`-6. Signing in requires you to setup one of two methods:- - Email requires a Resend API key:- - `RESEND_API_KEY="re_**********"`- - `RESEND_DOMAIN="carbon.ms"`+6. **Resend** (Email service) - [Create a Resend account](https://resend.com) and configure:++- `RESEND_API_KEY="re_**********"`+- `RESEND_DOMAIN="carbon.ms"` (or your domain, no trailing slashes or protocols)+- `RESEND_AUDIENCE_ID="*****"` (Optional - required for contact management in `packages/jobs`)++Resend is used for transactional emails (user invitations, email verification, onboarding). All three variables are stored in `packages/auth/src/config/env.ts`.++7. **Novu** (In-app notifications) - [Create a Novu account](https://novu.co) and configure:++- `NOVU_APPLICATION_ID="********************"` (Client-side, public)+- `NOVU_SECRET_KEY="********************"` (Server-side secret, backend only)++Novu is used for in-app notifications and notification workflows. After setup, sync your Novu workflows:++```bash+npm run novu:sync+```++This command syncs your Novu workflows with the Carbon application using the bridge URL.++**Variables by Package Location:**++| Variable | Location | Notes |+| --------------------- | ------------------------- | ----------------------------------------------------------- |+| `RESEND_API_KEY` | Backend (all apps) | Required for sending emails |+| `RESEND_DOMAIN` | Backend (all apps) | Email sender domain |+| `RESEND_AUDIENCE_ID` | `packages/jobs` (Trigger) | Optional - only needed for contact creation in `onboard.ts` |+| `NOVU_APPLICATION_ID` | Frontend + Backend | Used in `apps/erp/app/root.tsx` for Novu initialization |+| `NOVU_SECRET_KEY` | Backend only | Server-side authentication for Novu API |++8. Signing in requires you to setup one of two methods:+ - Email requires a Resend API key (configured in step 6 above)- Sign-in with Google requires a [Google auth client](https://supabase.com/docs/guides/auth/social-login/auth-google) with these variables:- `SUPABASE_AUTH_EXTERNAL_GOOGLE_CLIENT_ID="******.apps.googleusercontent.com"`- `SUPABASE_AUTH_EXTERNAL_GOOGLE_CLIENT_SECRET="GOCSPX-****************"`