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.

🔗 add symlinks for .env

Brad Barbin3d4cf60ca78d
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000000..62bd6dea9a
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,6 @@
+DB_URL="postgresql://postgres:postgres@localhost:54322/postgres"
+SESSION_SECRET="super-duper-s3cret"
+SUPABASE_ANON_PUBLIC="************"
+SUPABASE_SERVICE_ROLE="***********"
+SUPABASE_API_URL="http://localhost:54321"
+SERVER_URL="http://localhost:3000"
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..206b3bdb5d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,21 @@
+.DS_Store
+node_modules
+.turbo
+*.log
+.next
+dist
+dist-ssr
+*.local
+.cache
+server/dist
+public/dist
+.turbo
+
+# local env files
+.env
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+!packages/apps/carbon/.env
+!packages/carbon-database/.env
\ No newline at end of file
diff --git a/README.md b/README.md
index 437b651414..a26d0b9491 100644
--- a/README.md
+++ b/README.md
@@ -47,10 +47,9 @@ Copy the environment variables from the initialization script to an `.env` file:
$ cp ./.env.example ./.env
```
-After you've set the variables to the output of `db:start` you can run
+After you've set the enviroment variables to the output of `db:start` you can run
```bash
-$ ./init.sh # copy the .env file to different packages
$ yarn setup # run db migrations and seed script
```
diff --git a/apps/carbon/.env b/apps/carbon/.env
new file mode 120000
index 0000000000..c7360fb82d
--- /dev/null
+++ b/apps/carbon/.env
@@ -0,0 +1 @@
+../../.env
\ No newline at end of file
diff --git a/apps/carbon/.gitignore b/apps/carbon/.gitignore
index 42ec5e40f1..4a02fe5c58 100644
--- a/apps/carbon/.gitignore
+++ b/apps/carbon/.gitignore
@@ -1,7 +1,6 @@
node_modules
.cache
-.env
.vercel
.output
diff --git a/package.json b/package.json
index 96cb8284c5..72342ea49a 100755
--- a/package.json
+++ b/package.json
@@ -37,10 +37,10 @@
"predev": "tsx scripts/generate-types.ts"
},
"devDependencies": {
- "npm-run-all": "^4.1.5",
- "prettier": "^2.7.1",
+ "prettier": "^2.8.0",
"tsx": "^3.12.1",
"turbo": "^1.6.3",
- "supabase": "^1.16.2"
- }
+ "supabase": "^1.18.2"
+ },
+ "packageManager": "[email protected]"
}
diff --git a/packages/carbon-database/.env b/packages/carbon-database/.env
new file mode 120000
index 0000000000..c7360fb82d
--- /dev/null
+++ b/packages/carbon-database/.env
@@ -0,0 +1 @@
+../../.env
\ No newline at end of file
diff --git a/packages/carbon-database/supabase/.branches/_current_branch b/packages/carbon-database/supabase/.branches/_current_branch
deleted file mode 100644
index 88d050b190..0000000000
--- a/packages/carbon-database/supabase/.branches/_current_branch
+++ /dev/null
@@ -1 +0,0 @@
-main
\ No newline at end of file
diff --git a/packages/carbon-react/src/Data/Table/Table.tsx b/packages/carbon-react/src/Data/Table/Table.tsx
index 7b9eed1902..19efbaf1bf 100644
--- a/packages/carbon-react/src/Data/Table/Table.tsx
+++ b/packages/carbon-react/src/Data/Table/Table.tsx
@@ -70,7 +70,7 @@ const Table = <Data extends object>({
const rowBackground = useColorModeValue("gray.50", "whiteAlpha.100");
return (
- <Box w="full" h="100%">
+ <Box w="full">
<ChakraTable {...getTableProps()}>
<Thead>
{headerGroups.map((headerGroup, headerIdx) => (
diff --git a/yarn.lock b/yarn.lock
index d8f231e818..8f3d722a48 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10267,11 +10267,16 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==
[email protected], prettier@^2.7.1:
version "2.7.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
+prettier@^2.8.0:
+ version "2.8.0"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.0.tgz#c7df58393c9ba77d6fba3921ae01faf994fb9dc9"
+ integrity sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==
+
version "5.6.0"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb"
@@ -11684,10 +11689,10 @@ supabase@^1.16.1:
node-fetch "^3.2.10"
tar "6.1.12"
-supabase@^1.16.2:
- version "1.16.3"
- resolved "https://registry.yarnpkg.com/supabase/-/supabase-1.16.3.tgz#f6afa84974fe25067cd9d16b08d3e6d6251cb912"
- integrity sha512-zEgcR39R7RdeI+emULAElfIXLkLJXY0jdmyE4JzSfiPePoUD5+JFNCRvJ5aj3DarE4BdOi7dY9pNNy+qpjEliQ==
+supabase@^1.18.2:
+ version "1.18.2"
+ resolved "https://registry.yarnpkg.com/supabase/-/supabase-1.18.2.tgz#26128723e503091921eda9941ca4f9c5c57a9382"
+ integrity sha512-Byd9l/XBXARiCfjo70Xx771D2yA8203jpmJLMDojPnQ7h/xrBS4UDqhH9sjYalOEjoivy4e7aptC9pkf1IBr0w==
dependencies:
node-fetch "^3.2.10"
tar "6.1.12"