{"id":34811324,"url":"https://github.com/erishen/interview","last_synced_at":"2026-05-25T02:03:14.694Z","repository":{"id":329129497,"uuid":"1116088345","full_name":"erishen/interview","owner":"erishen","description":"Next.js Turborepo Monorepo","archived":false,"fork":false,"pushed_at":"2025-12-28T11:33:06.000Z","size":573,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-29T08:17:07.378Z","etag":null,"topics":["monorepo","nextjs","react","supabase","tailwindcss","turborepo","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://web.erishen.cn","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/erishen.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-12-14T07:02:25.000Z","updated_at":"2025-12-28T14:23:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/erishen/interview","commit_stats":null,"previous_names":["erishen/interview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erishen/interview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erishen%2Finterview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erishen%2Finterview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erishen%2Finterview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erishen%2Finterview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erishen","download_url":"https://codeload.github.com/erishen/interview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erishen%2Finterview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33457339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T19:21:36.376Z","status":"online","status_checked_at":"2026-05-25T02:00:05.812Z","response_time":57,"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":["monorepo","nextjs","react","supabase","tailwindcss","turborepo","typescript","vercel"],"created_at":"2025-12-25T12:54:58.789Z","updated_at":"2026-05-25T02:03:14.689Z","avatar_url":"https://github.com/erishen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interview Project\n\nA modern interview project built with Next.js and monorepo architecture using Turborepo.\n\n# Vercel URL\n- https://admin.erishen.cn\n- https://web.erishen.cn\n\n## 🏗️ Architecture\n\nThis project uses a monorepo structure with the following organization:\n\n```\ninterview/\n├── apps/\n│   ├── web/          # Main Next.js application\n│   └── admin/        # Admin dashboard (Next.js)\n├── packages/\n│   ├── ui/           # Shared UI components\n│   ├── utils/        # Utility functions\n│   ├── config/       # Configuration files\n│   ├── types/        # TypeScript type definitions\n│   └── eslint-config/ # Shared ESLint configuration\n├── package.json      # Root package.json\n├── pnpm-workspace.yaml\n├── turbo.json        # Turborepo configuration\n└── tsconfig.json     # Root TypeScript configuration\n```\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js 18+ \n- pnpm 8+\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd interview\n```\n\n2. Install dependencies:\n```bash\npnpm install\n```\n\n3. Start the development server:\n```bash\npnpm dev\n```\n\nThis will start:\n- Web app at http://localhost:3000\n- Admin app at http://localhost:3003\n\n## 📦 Available Scripts\n\n- `pnpm dev` - Start all applications in development mode\n- `pnpm build` - Build all applications for production\n- `pnpm lint` - Run ESLint across all packages\n- `pnpm type-check` - Run TypeScript type checking\n- `pnpm test` - Run tests across all packages\n- `pnpm clean` - Clean build artifacts\n- `pnpm format` - Format code with Prettier\n\n## 🏗️ Project Structure\n\n### Apps\n\n- **web**: Main Next.js application with modern UI\n- **admin**: Admin dashboard for managing the application\n\n### Packages\n\n- **ui**: Reusable React components with Tailwind CSS\n- **utils**: Utility functions and helpers\n- **config**: Configuration files and constants\n- **types**: Shared TypeScript type definitions\n- **eslint-config**: Shared ESLint configuration\n\n## 🛠️ Tech Stack\n\n- **Framework**: Next.js 14 with App Router\n- **Language**: TypeScript\n- **Styling**: Tailwind CSS\n- **Build Tool**: Turborepo\n- **Package Manager**: pnpm\n- **Linting**: ESLint + Prettier\n\n## 📚 Articles\n\nTechnical articles about this project:\n\n- 🇨🇳 **[个人博客](https://erishen.cn/?p=180)** - 从零搭建全栈技术知识库：Monorepo + Next.js 14 + FastAPI\n- 🇨🇳 **[掘金](https://juejin.cn/post/7589110783146164258)** - 从零搭建全栈技术知识库：Monorepo + Next.js 14 + FastAPI\n- 🇨🇳 **[SegmentFault](https://segmentfault.com/a/1190000047510388)** - 从零搭建全栈技术知识库：Monorepo + Next.js 14 + FastAPI\n- 🌍 **[Medium](https://medium.com/@leisun8309/building-a-full-stack-technical-knowledge-base-from-scratch-monorepo-next-js-14-fastapi-8d5cc533d401)** - Building a Full-Stack Technical Knowledge Base from Scratch: Monorepo + Next.js 14 + FastAPI\n\n## 🔧 Development\n\n### Adding New Packages\n\nTo add a new package to the monorepo:\n\n1. Create a new directory in `packages/`\n2. Add a `package.json` with the naming convention `@interview/package-name`\n3. Update the root `tsconfig.json` paths if needed\n4. Add the package to relevant app dependencies\n\n### Working with Shared Components\n\nComponents from the `@interview/ui` package can be imported in any app:\n\n```tsx\nimport { Button, Card, Input } from \"@interview/ui\";\n```\n\n### Environment Variables\n\nCreate `.env.local` files in individual apps for environment-specific variables:\n\n```bash\n# apps/web/.env.local\nNEXT_PUBLIC_API_URL=http://localhost:3000/api\n```\n\n## 📝 Code Style\n\nThis project uses:\n- ESLint for code linting\n- Prettier for code formatting\n- TypeScript for type safety\n\nRun `pnpm lint` and `pnpm format` before committing changes.\n\n## 🚀 Deployment\n\n### Building for Production\n\n```bash\npnpm build\n```\n\n### Individual App Deployment\n\nEach app can be deployed independently:\n\n```bash\n# Build specific app\ncd apps/web\npnpm build\npnpm start\n```\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Run tests and linting\n5. Submit a pull request\n\n## 📄 License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferishen%2Finterview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferishen%2Finterview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferishen%2Finterview/lists"}