{"id":48615342,"url":"https://github.com/maxcharm093/turborepo","last_synced_at":"2026-04-09T01:33:53.676Z","repository":{"id":311487805,"uuid":"1043843325","full_name":"maxcharm093/turborepo","owner":"maxcharm093","description":"N is NestJs, P is PostgreSql, N is NextJs. Turborepo with NextJS and NestJS, Postgresql with TypeORM. UI components for shadcnUI pre configured.","archived":false,"fork":false,"pushed_at":"2025-08-24T18:44:02.000Z","size":7406,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-24T22:51:47.238Z","etag":null,"topics":["nestjs","postgresql","typeorm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxcharm093.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-08-24T18:25:41.000Z","updated_at":"2025-08-24T18:53:28.000Z","dependencies_parsed_at":"2025-08-24T22:53:10.811Z","dependency_job_id":"3e2dcb05-b2f8-4f85-b67f-67d4a63f6a33","html_url":"https://github.com/maxcharm093/turborepo","commit_stats":null,"previous_names":["maxcharm093/turborepo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maxcharm093/turborepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fturborepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fturborepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fturborepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fturborepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxcharm093","download_url":"https://codeload.github.com/maxcharm093/turborepo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxcharm093%2Fturborepo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["nestjs","postgresql","typeorm"],"created_at":"2026-04-09T01:33:53.475Z","updated_at":"2026-04-09T01:33:53.650Z","avatar_url":"https://github.com/maxcharm093.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"assets/preview.png\" width=\"851\" alt=\"hello\"\u003e\n\n## NestJS \u0026 NextJS Boilerplate with Turborepo\n\nThis repository provides a scalable and efficient `monorepo` setup using Turborepo. It includes `NestJS` for backend\nservices and `NextJS` for frontend applications, with a suite of tools and libraries configured for seamless development\nand deployment.\n\n### **Features**\n\n- `NestJS (v11)` backend\n- `NextJS (v15)` frontend\n- `SWC` for fast TypeScript and JavaScript transpilation\n- `pnpm` for efficient dependency management\n- `JWT` Access Token \u0026 Refresh Token Authentication for secure API access\n- `PostgreSQL` database with TypeORM\n- `Nodemailer` for email services\n- `Linting` and `Formatting` pre-configured for code quality\n- `Micro-Frontend` Support with Turborepo\n- `Shadcn/UI` integration for styled components\n- `Tailwindcss(v4)` integration in `@repo/shadcn`\n\n### **Table of Contents**\n\n- Installation\n- Getting Started\n- Project Structure\n- Scripts\n- Contributing\n- License\n\n### **Installation**\n\nClone the repository:\n\n```shell\ngit clone https://github.com/devaungphyo/turbo-npn.git\n```\n\nNavigate to the project directory:\n\n```shell\ncd turbo-npn\n```\n\nInstall dependencies using pnpm:\n\n```shell\npnpm install\n```\n\nGetting Started\nTo start the development server, run:\n\n```shell\npnpm dev\n```\n\nThis will start both the NestJS backend and the Next.js frontend in development mode.\n\nProject Structure\nThe repository is organized into the following structure:\n\n```yaml\nturborepo\n├── .husky               # Git hooks\n├── apps\n│   ├── api              # NestJS application\n│   └── web              # NextJS application\n├── assets               # Assets folder for media assets\n├── packages\n│   ├── shadcn           # shadcn/UI component library\n│   ├── ts-config        # Shared typescript configuration files\n│   ├── eslint-config    # Shared eslint configuration files\n│   ├── utils            # Shared utils functions\n└── turbo.json           # Turborepo configuration\n```\n\n### Backend (NestJS)\n\nThe backend is powered by NestJS, with TypeORM configured to use PostgreSQL. JWT access token and refresh token\nauthentication is implemented for secure API access. Nodemailer is used to handle email services.\n\n\u003cimg src=\"assets/lifecycle.png\" alt=\"life cycle\" width=\"100%\"\u003e\n\n### Frontend (NextJS)\n\nThe frontend is built with NextJS v15, styled with shadcn/UI components. It is optimized for server-side rendering and\nfrontend authentication.\nMicro-Frontend with Turborepo\nUsing Turborepo, the project supports a micro-frontend architecture, enabling shared libraries and configurations across\napps.\n\n### To Add New UI Components to the UI Package\n\n```shell\ncd packages/shadcn\n```\n\nThen run the following command:\n\n```shell\npnpm dlx shadcn@latest add\n```\n\nThis will add the latest version of shadcn to the UI package.\n\n`If you got an error in the UI package, change the import path`\n\n```tsx\n// form\nimport { cn } from '@repo/lib/utils';\n\n// to\nimport { cn } from '@repo/shadcn/lib/utils';\n```\n\n### Scripts\n\n- `pnpm add:api` - Adds a package specifically to the api workspace.\n- `pnpm add:web` - Adds a package specifically to the web workspace.\n- `pnpm build` - Builds both the backend and frontend for production using TurboRepo.\n- `pnpm changeset` - Creates a new changeset for versioning updates.\n- `pnpm clear:modules` - Clears all node_modules in the project using npkill.\n- `pnpm commit` - Opens an interactive commit message interface using Commitizen (cz).\n- `pnpm dev` - Starts both the backend and frontend in development mode using TurboRepo.\n- `pnpm dev:api` - Starts the backend (api) in development mode.\n- `pnpm dev:web` - Starts the frontend (web) in development mode.\n- `pnpm format` - Formats the codebase according to the pre-configured Prettier rules.\n- `pnpm format:check` - Checks the codebase formatting against Prettier rules without modifying files.\n- `pnpm lint` - Lints all code in the repository using TurboRepo.\n- `pnpm prepare` - Runs Husky to set up Git hooks.\n- `pnpm prod` - Starts both the backend and frontend in production mode.\n- `pnpm test` - Runs all tests defined in the repository using TurboRepo.\n\n### Contributing\n\nContributions are welcome! Please fork this repository, make your changes, and submit a pull request.\n\n### License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxcharm093%2Fturborepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxcharm093%2Fturborepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxcharm093%2Fturborepo/lists"}