{"id":32773314,"url":"https://github.com/amin-norollah/fullstack-monorepo-starter","last_synced_at":"2026-04-28T12:34:01.371Z","repository":{"id":321093016,"uuid":"1084451075","full_name":"amin-norollah/fullstack-monorepo-starter","owner":"amin-norollah","description":"Ready-to-use full-stack template with NestJS, Angular, Prisma, Redis \u0026 PostgreSQL. Everything configured, just clone and code.","archived":false,"fork":false,"pushed_at":"2025-10-27T18:01:02.000Z","size":1987,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-04T10:03:05.971Z","etag":null,"topics":["angular","nestjs","nodejs","startkit","template"],"latest_commit_sha":null,"homepage":"http://www.norollah.com","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/amin-norollah.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-10-27T17:40:09.000Z","updated_at":"2025-10-27T18:03:53.000Z","dependencies_parsed_at":"2025-10-27T19:32:07.779Z","dependency_job_id":null,"html_url":"https://github.com/amin-norollah/fullstack-monorepo-starter","commit_stats":null,"previous_names":["amin-norollah/fullstack-monorepo-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amin-norollah/fullstack-monorepo-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amin-norollah%2Ffullstack-monorepo-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amin-norollah%2Ffullstack-monorepo-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amin-norollah%2Ffullstack-monorepo-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amin-norollah%2Ffullstack-monorepo-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amin-norollah","download_url":"https://codeload.github.com/amin-norollah/fullstack-monorepo-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amin-norollah%2Ffullstack-monorepo-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32381636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"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":["angular","nestjs","nodejs","startkit","template"],"created_at":"2025-11-04T10:00:55.775Z","updated_at":"2026-04-28T12:34:01.335Z","avatar_url":"https://github.com/amin-norollah.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full-Stack Monorepo Starter\n\n![Full-Stack Monorepo Starter](./background.png)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/amin-norollah/fullstack-monorepo-starter/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/badge/node-%3E%3D20.19-green.svg\" alt=\"Node\"\u003e\u003c/a\u003e\n  \u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/badge/typescript-5.7-blue.svg\" alt=\"TypeScript\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nA ready-to-use NestJS + Angular monorepo with Prisma, Redis, and PostgreSQL.\n\n## Why This Exists\n\nI got tired of spending hours setting up the same stack every time I started a new project. Database migrations, Redis caching, proper validation, API docs - it's always the same setup. So I built this template once and properly, so I (and you) can just clone it and start building features instead of infrastructure.\n\nThis is what I wish existed when I was starting projects. No fluff, just a working full-stack setup that you can actually use.\n\n**Time saved:** ~4-6 hours per project setup → ~5 minutes with this template.\n\n## What You Get\n\n**Backend:**\n\n- NestJS API with TypeScript\n- Prisma ORM (type-safe database queries)\n- PostgreSQL database\n- Redis caching (already configured)\n- Swagger docs at `/api`\n- Request validation\n- Docker setup for local development\n\n**Frontend:**\n\n- Angular 19 with standalone components\n- Task management UI\n- Reactive forms\n- HTTP client with RxJS\n\n**The boring stuff that's already done:**\n\n- Error handling\n- Response formatting\n- Database migrations\n- Sample data seeding\n- Environment configs\n- Docker Compose setup\n\n## Quick Start\n\nYou need Node.js 20+, npm, and Docker installed.\n\n```bash\ngit clone https://github.com/amin-norollah/fullstack-monorepo-starter.git\ncd fullstack-monorepo-starter\nnpm run install:all\n\ndocker-compose up -d\n\ncd backend\ncopy env.template .env\ncd ..\n\ncd backend\nnpm run prisma:migrate\nnpm run prisma:seed\ncd ..\n\nnpm start\n```\n\n**Done!**\n\n- Frontend: http://localhost:4200\n- Backend API: http://localhost:3000\n- API docs: http://localhost:3000/api\n\n## Project Structure\n\n```\nfullstack-monorepo-starter/\n├── backend/\n│   ├── prisma/\n│   │   ├── schema.prisma       # Your database models\n│   │   └── seed.ts             # Sample data\n│   ├── src/\n│   │   ├── common/             # Shared stuff (filters, interceptors)\n│   │   ├── dto/                # Request/response validation\n│   │   ├── prisma/             # Database service\n│   │   ├── redis/              # Cache service\n│   │   ├── app.controller.ts  # Your API endpoints\n│   │   ├── app.service.ts     # Your business logic\n│   │   └── main.ts            # App entry point\n│   └── env.template           # Copy this to .env\n├── frontend/                  # Angular app\n│   ├── src/\n│   │   ├── app/\n│   │   │   ├── components/   # Task list component\n│   │   │   ├── services/     # API service\n│   │   │   └── ...\n│   │   └── index.html\n│   └── package.json\n├── docker-compose.yml         # PostgreSQL + Redis\n└── package.json\n```\n\n## Development Commands\n\n**Backend:**\n\n```bash\ncd backend\n\nnpm run start:dev              # Hot reload development\nnpm run prisma:studio          # Visual database browser\nnpm run prisma:migrate         # Create/run migrations\nnpm run prisma:seed            # Add sample data\nnpm run test                   # Run tests\n```\n\n**Frontend:**\n\n```bash\ncd frontend\n\nnpm start                      # Dev server (port 4200)\nnpm run build                  # Build for production\n```\n\n**Docker:**\n\n```bash\ndocker-compose up -d           # Start services\ndocker-compose down            # Stop services\ndocker-compose logs -f         # View logs\n```\n\n**Root:**\n\n```bash\nnpm start                      # Start both backend and frontend\nnpm run start:backend          # Backend only\nnpm run start:frontend         # Frontend only\n```\n\n## What's Actually Useful Here\n\n### 1. Redis Caching (Already Working)\n\nThe service layer automatically caches tasks in Redis for 5 minutes. No extra code needed:\n\n```typescript\n// This automatically uses cache\nconst tasks = await this.appService.getTasks();\n```\n\nCache invalidates automatically when you create/update/delete tasks.\n\n### 2. Type-Safe Database\n\nPrisma gives you autocomplete and type safety:\n\n```typescript\nconst task = await prisma.task.findUnique({\n  where: { id: \"123\" },\n});\n// TypeScript knows exactly what 'task' contains\n```\n\n### 3. Validation That Actually Works\n\nJust use decorators on your DTOs:\n\n```typescript\nexport class CreateTaskDto {\n  @IsString()\n  @MaxLength(100)\n  name: string;\n\n  @IsString()\n  @MaxLength(500)\n  description: string;\n}\n```\n\nInvalid requests get rejected automatically with clear error messages.\n\n### 4. Database Migrations\n\nChange your schema, run one command:\n\n```bash\nnpm run prisma:migrate\n```\n\nPrisma handles the rest. No manual SQL, no migration hell.\n\n## Environment Setup\n\nCopy `backend/env.template` to `backend/.env`. Defaults work for local development:\n\n```env\nPORT=3000\nDATABASE_URL=postgresql://postgres:postgres@localhost:5432/fullstack_monorepo_starter?schema=public\nREDIS_HOST=localhost\nREDIS_PORT=6379\nREDIS_PASSWORD=redis_password\n```\n\nFor production, change the database URL and add a strong JWT secret.\n\n## Tech Stack\n\n| Technology     | Purpose           | Why This One                                |\n| -------------- | ----------------- | ------------------------------------------- |\n| **NestJS**     | Backend framework | Better structured than Express, built-in DI |\n| **Prisma**     | Database ORM      | Type-safe queries, easy migrations          |\n| **PostgreSQL** | Database          | Reliable, feature-rich, well-supported      |\n| **Redis**      | Caching           | Fast, simple, perfect for sessions/cache    |\n| **Angular**    | Frontend          | Powerful, complete framework                |\n| **TypeScript** | Language          | Catches bugs before runtime                 |\n| **Docker**     | Development       | Consistent local environment                |\n\n## What's Not Included\n\n- Authentication (JWT packages are installed, but you need to implement it)\n- File uploads\n- Email sending\n- Real-time features (WebSockets)\n- Advanced form validation on frontend\n- State management (NgRx, etc.)\n\nThese are all easy to add when you need them. The foundation is here.\n\n## Deployment\n\nFor production:\n\n1. Set `NODE_ENV=production` in your env\n2. Use a real database URL (not localhost)\n3. Set a strong random `JWT_SECRET`\n4. Build with `npm run build`\n5. Run with `npm run start:prod`\n\nFor Docker deployment, create a Dockerfile in the backend folder. Standard Node.js container setup works fine.\n\n## Contributing\n\nFound a bug? Have a better way to do something? PRs welcome.\n\n## License\n\nMIT - use it however you want.\n\n---\n\n**That's it.** Clone it, run 5 commands, start coding 🚀😍.\n\nif something's not working, open an issue. if it helps you, star it on GitHub🙏.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famin-norollah%2Ffullstack-monorepo-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famin-norollah%2Ffullstack-monorepo-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famin-norollah%2Ffullstack-monorepo-starter/lists"}