Skip to content

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.

docs: update ports of starter app

Brad Barbineeccb6d605be
diff --git a/README.md b/README.md
index 3dce2e1f20..bfe0715827 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,17 @@
![CarbonOS](https://github.com/user-attachments/assets/664eb49a-f873-49f8-bb6f-95a94ba89f97)
-Carbon is the operating system for manufacturing. It allows customers, suppliers, and employees to share a common platform that's easy to integrate with.
+Carbon is the open-source operating system for manufacturing.
Technical highlights/roadmap:
+- [x] Unified auth and permissions across apps
- [x] Full-stack type safety (Database → UI)
- [x] Realtime database subscriptions
- [x] Attribute-based access control (ABAC)
+- [x] Role-based access control (Customer, Supplier, Employee)
- [x] Row-level security (RLS)
- [x] Composable user groups
-- [x] Magic link authentication
-- [x] File-based routing
-- [ ] Third-party integrations for data
-- [ ] Easy-to-use plugin system
+- [x] Third-party integrations
## Techstack
@@ -64,11 +63,10 @@ Make sure that you have [Docker installed](https://docs.docker.com/desktop/insta
After installation you should be able to access the following apps/containers locally:
| Application | URL |
-| --------------- | ------------------------------------------------------------------------------------------------------------------ |
+| --------------- | ------------------------------------------------------------------------------------------------------------------ | --- |
| ERP | [http://localhost:3000](http://localhost:3000) |
-| Developers | [http://localhost:3001](http://localhost:3001) |
-| MES | [http://localhost:3002](http://localhost:3002) |
-| Website | [http://localhost:3003](http://localhost:3003) |
+| MES | [http://localhost:3001](http://localhost:3001) |
+| Starter | [http://localhost:3002](http://localhost:3002) | |
| Postgres | [postgresql://postgres:postgres@localhost:54322/postgres](postgresql://postgres:postgres@localhost:54322/postgres) |
| Supabase Studio | [http://localhost:54323/project/default](http://localhost:54323/project/default) |
| Inbucket | [http://localhost:54324/monitor](http://localhost:54324/monitor) |
@@ -102,23 +100,23 @@ $ cp ./.env.example ./.env
1. Use the output of `npm run db:start` to set the supabase entries:
-- SUPABASE_SERVICE_ROLE_KEY=[service_role key]
-- SUPABASE_ANON_KEY=[anon key]
+- `SUPABASE_SERVICE_ROLE_KEY=[service_role key]`
+- `SUPABASE_ANON_KEY=[anon key]`
2. [Create a Redis database in upstash](https://console.upstash.com/redis) and copy the following from the `REST API` section:
-- UPSTASH_REDIS_REST_URL=[UPSTASH_REDIS_REST_URL]
-- UPSTASH_REDIS_REST_TOKEN=[UPSTASH_REDIS_REST_TOKEN]]
+- `UPSTASH_REDIS_REST_URL=[UPSTASH_REDIS_REST_URL]`
+- `UPSTASH_REDIS_REST_TOKEN=[UPSTASH_REDIS_REST_TOKEN]`
3. Navigate to the project you created in [https://cloud.trigger.dev/](Trigger.dev) and copy the following from the `Environments & API Keys` section:
-- TRIGGER*PUBLIC_API_KEY=[Public 'dev' API Key, starting 'pk_dev*']
-- TRIGGER*API_KEY=[Server 'dev' API Key, starting 'tr_dev*']
+- `TRIGGER_PUBLIC_API_KEY=[Public 'dev' API Key, starting 'pk_dev*']`
+- `TRIGGER_API_KEY=[Server 'dev' API Key, starting 'tr_dev*']`
4. In Posthog go to [https://[region].posthog.com/project/[project-id]/settings/project-details](https://[region].posthog.com/project/[project-id]/settings/project-details) to find your Project ID and Project API key:
-- POSTHOG_API_HOST=[https://[region].posthog.com]
-- POSTHOG*PROJECT_PUBLIC_KEY=[Project API Key starting 'phc*']
+- `POSTHOG_API_HOST=[https://[region].posthog.com]`
+- `POSTHOG_PROJECT_PUBLIC_KEY=[Project API Key starting 'phc*']`
Then you can run the following:
diff --git a/apps/mes/vite.config.ts b/apps/mes/vite.config.ts
index 5421b2e974..ad371e1985 100644
--- a/apps/mes/vite.config.ts
+++ b/apps/mes/vite.config.ts
@@ -31,7 +31,7 @@ export default defineConfig({
],
},
server: {
- port: 3002,
+ port: 3001,
},
plugins: [
remix({
diff --git a/apps/starter/app/root.tsx b/apps/starter/app/root.tsx
index cd9515f4a1..afdf7cdd03 100644
--- a/apps/starter/app/root.tsx
+++ b/apps/starter/app/root.tsx
@@ -44,7 +44,7 @@ export function links() {
export const meta: MetaFunction = () => {
return [
{
- title: "CarbonOS | Developers",
+ title: "CarbonOS | Starter",
},
];
};
diff --git a/apps/starter/app/routes/x+/_layout.tsx b/apps/starter/app/routes/x+/_layout.tsx
index 1d0504c6d0..f6d52a55e7 100644
--- a/apps/starter/app/routes/x+/_layout.tsx
+++ b/apps/starter/app/routes/x+/_layout.tsx
@@ -1,9 +1,4 @@
-import {
- SidebarInset,
- SidebarProvider,
- SidebarTrigger,
- Toaster,
-} from "@carbon/react";
+import { Toaster } from "@carbon/react";
import { Outlet, useLoaderData, useNavigation } from "@remix-run/react";
import type { LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
@@ -22,9 +17,6 @@ import {
requireAuthSession,
} from "@carbon/auth/session.server";
-import { AppSidebar } from "~/components/AppSidebar";
-import Breadcrumbs from "~/components/Breadcrumbs";
-
export async function loader({ request }: LoaderFunctionArgs) {
const { accessToken, companyId, expiresAt, expiresIn, userId } =
await requireAuthSession(request, { verify: true });
@@ -78,23 +70,8 @@ export default function AuthenticatedRoute() {
return (
<CarbonProvider session={session}>
- <SidebarProvider>
- <AppSidebar />
- <SidebarInset>
- <header className="flex h-16 shrink-0 items-center gap-2">
- <div className="flex items-center gap-2 px-4">
- <SidebarTrigger className="-ml-1" />
- <Breadcrumbs />
- </div>
- </header>
- <div className="flex flex-1 flex-col">
- <div className="min-h-[100vh] flex-1 rounded-xl bg-muted/50 md:min-h-min">
- <Outlet />
- </div>
- </div>
- </SidebarInset>
- <Toaster position="bottom-right" />
- </SidebarProvider>
+ <Outlet />
+ <Toaster position="bottom-right" />
</CarbonProvider>
);
}
diff --git a/apps/starter/vite.config.ts b/apps/starter/vite.config.ts
index ad371e1985..5421b2e974 100644
--- a/apps/starter/vite.config.ts
+++ b/apps/starter/vite.config.ts
@@ -31,7 +31,7 @@ export default defineConfig({
],
},
server: {
- port: 3001,
+ port: 3002,
},
plugins: [
remix({