{"id":30897524,"url":"https://github.com/akashdeep023/turborepo-setup","last_synced_at":"2026-04-11T14:02:54.413Z","repository":{"id":313474972,"uuid":"1051480357","full_name":"akashdeep023/turborepo-setup","owner":"akashdeep023","description":"https://turborepo-setup.vercel.app/","archived":false,"fork":false,"pushed_at":"2025-09-06T08:52:16.000Z","size":200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-06T10:23:56.074Z","etag":null,"topics":["eslint","nextjs","postgresql","prisma","prisma-client","shadcn-ui","tailwindcss","turbo","turborepo","turborepo-example","turborepo-prisma","turborepo-shadcn","turborepo-tailwind","typescript","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akashdeep023.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-06T04:45:45.000Z","updated_at":"2025-09-06T09:11:33.000Z","dependencies_parsed_at":"2025-09-06T10:23:59.187Z","dependency_job_id":"d5be734e-f3e5-4e3f-9fb9-5c80d8afcc98","html_url":"https://github.com/akashdeep023/turborepo-setup","commit_stats":null,"previous_names":["akashdeep023/turborepo-setup"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/akashdeep023/turborepo-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2Fturborepo-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2Fturborepo-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2Fturborepo-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2Fturborepo-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akashdeep023","download_url":"https://codeload.github.com/akashdeep023/turborepo-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2Fturborepo-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231110,"owners_count":25245685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","nextjs","postgresql","prisma","prisma-client","shadcn-ui","tailwindcss","turbo","turborepo","turborepo-example","turborepo-prisma","turborepo-shadcn","turborepo-tailwind","typescript","web"],"created_at":"2025-09-09T00:12:43.754Z","updated_at":"2025-12-30T21:27:26.355Z","avatar_url":"https://github.com/akashdeep023.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turborepo Monorepo\n\nThis repository is a **Turborepo setup** for building full-stack applications.\nIt combines a **frontend**, **backend**, and **shared packages** in one place.\n\n---\n\n## 📂 What’s Inside\n\n```\n.\n├── apps/\n│   ├── web/        # Next.js frontend (Tailwind + Shadcn UI)\n│   └── api/        # Express backend (Prisma + PostgreSQL)\n├── packages/\n│   ├── ui/         # Shared UI components (Shadcn + Tailwind)\n│   ├── database/   # Prisma client + DB helpers\n│   ├── config-*/   # Shared configs (Tailwind, ESLint, TypeScript)\n└── turbo.json      # Turborepo config\n```\n\n- **apps/web** → Public web app using **Next.js + Tailwind + Shadcn UI**\n- **apps/api** → API server using **Express + Prisma + PostgreSQL**\n- **packages/ui** → Shared UI components across apps\n- **packages/database** → Prisma client \u0026 DB setup\n- **packages/config-**\\* → Shared configs for consistency\n\n---\n\n## WEB APP (apps/web)\n\nThis app is a **Next.js frontend** using **Tailwind + Shadcn UI**.\n\nAdd `NEXT_PUBLIC_NODE_API` to `.env` in the root of the **apps/web**\n\n```sh\nNEXT_PUBLIC_NODE_API=\"http://localhost:4000\"\n```\n\nRun it locally:\n\n```sh\ncd apps/web\nnpm run dev\n```\n\n---\n\n## 🎨 UI Package (packages/ui)\n\nThis package contains **reusable UI components** using Shadcn + Tailwind.\nYou can extend the UI by adding components:\n\n```sh\ncd packages/ui\nnpx shadcn-ui@latest add button\n```\n\nThen use it in apps:\n\n```tsx\nimport { Button } from \"@repo/ui/components/button\";\n\nexport default function Page() {\n\treturn \u003cButton variant={\"outline\"}\u003eClick Me\u003c/Button\u003e;\n}\n```\n\n---\n\n## 🗄️ Database Package (packages/database)\n\nThis package provides a **Prisma client** to connect to PostgreSQL.\nRun migrations and generate the client from here:\n\nAdd `DATABASE_URL` to `.env` in the root of the **packages/database**\n\n```sh\nDATABASE_URL=\"postgresql://\u003cusername\u003e:\u003cpassword\u003e@\u003chost\u003e/\u003cdatabase_name\u003e?sslmode=require\u0026channel_binding=require\"\nNODE_ENV=\"development\"\n```\n\n```sh\ncd packages/database\nnpx prisma migrate dev --name init\nnpx prisma generate\n```\n\nUse it in apps:\n\n```ts\nimport { prisma } from \"@repo/database\";\n\nconst users = await prisma.users.findMany();\n```\n\n---\n\n## 🚀 How to Run the Apps\n\nFrom the root of the repo:\n\n```sh\nnpm install\nnpm run dev\n```\n\n- **Web** → [http://localhost:3000](http://localhost:3000)\n- **API** → [http://localhost:4000](http://localhost:4000)\n\n---\n\n## 👨‍💻 Contact\n\nBuilt by:\n\n- **Akash Deep**\n- 🌐 Website: [https://akashdeep023.vercel.app](https://https://akashdeep023.vercel.app)\n- 🐙 GitHub: [@akashdeep023](https://github.com/akashdeep023)\n- 💼 LinkedIn: [Akash Deep](https://linkedin.com/in/akashdeep023)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashdeep023%2Fturborepo-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakashdeep023%2Fturborepo-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashdeep023%2Fturborepo-setup/lists"}