The ultimate starting point for modern web applications - A comprehensive, production-ready template with a working TaskFlow demo application and professional PRD generation system.
- TaskFlow Project Management Platform - Fully functional demo with authentication, dashboard, projects, tasks, and team management
- Real Data & Interactions - Pre-seeded database with demo users, projects, and tasks
- Production-Ready Features - Authentication, role-based access, responsive design, dark/light themes
- 20+ Professional Templates - Complete requirements documents for every development domain
- Automated Generation Scripts - Generate complete documentation for any project type
- Cross-PRD Dependencies - Validation and consistency checking across all documents
- Modern Tech Stack - Next.js 15, TypeScript, Prisma, shadcn/ui, NextAuth.js
- Database Ready - SQLite for development, PostgreSQL for production
- CI/CD Pipeline - GitHub Actions, testing, deployment automation
- Developer Experience - ESLint, Prettier, Husky, conventional commits
- Node.js 18+ and npm 9+
- Git
git clone https://github.com/Babalsaab/Project_Starter.git my-project
cd my-project
# Optional: Use the correct Node.js version
nvm use # If you have nvm installed
# Clean install of dependencies
rm -rf node_modules package-lock.json
npm cache clean --force
npm installcp .env.example .env.local
# Edit .env.local with your configuration# Generate Prisma client
npx prisma generate
# Create and seed database
DATABASE_URL="file:./dev.db" npx prisma db push
DATABASE_URL="file:./dev.db" npm run db:seednpm run dev๐ That's it! Open http://localhost:3000 (or the port shown in terminal) and start exploring.
๐ฎ Demo Access
The application comes with pre-configured demo accounts:
| Role | Features | |
|---|---|---|
| Admin | admin@taskflow.com | Full system access, user management |
| Manager | manager@taskflow.com | Project creation, team management |
| Member | alice@taskflow.com | Task management, collaboration |
Password: Any password works for demo accounts
๐ Project Structure
Project_Starter/ โโโ src/ # Application source code โ โโโ app/ # Next.js App Router โ โ โโโ api/ # API routes โ โ โโโ auth/ # Authentication pages โ โ โโโ dashboard/ # Main application โ โ โโโ prd-templates/ # PRD template browser โ โโโ components/ # React components โ โ โโโ ui/ # shadcn/ui components โ โ โโโ features/ # Feature-specific components โ โ โโโ layout/ # Layout components โ โโโ lib/ # Utilities and configurations โโโ prd-system/ # PRD templates and generation โ โโโ templates/ โ โ โโโ core-16/ # 16 core PRD templates โ โ โโโ specialized/ # Specialized PRD templates โ โโโ workflows/ # Generation automation โโโ prisma/ # Database schema and seed โโโ scripts/ # Automation scripts โโโ docs/ # Documentation and guides โโโ .github/ # CI/CD workflows โโโ generated-prds/ # Generated PRD outputs
๐ Core Features
Authentication & User Management
- โ NextAuth.js with multiple providers (GitHub, Google, Email, Credentials)
- โ Role-based access control (Admin, Manager, Member)
- โ User profiles and session management
TaskFlow Demo Application
- โ Complete project management interface
- โ Dashboard with metrics and activity feeds
- โ Task management with Kanban boards
- โ Team collaboration and assignments
- โ Real-time notifications and updates
PRD Generation System
- โ 16 core PRD templates (Frontend, Backend, Security, etc.)
- โ 4 specialized templates (AI/ML, DevOps, Testing, etc.)
- โ Web interface for browsing and generating templates
- โ Command-line generation tools
Modern UI/UX
- โ shadcn/ui component library
- โ Dark/light theme support
- โ Fully responsive design
- โ Accessibility compliance (WCAG 2.1 AA)
๐ Available Scripts
npm run dev # Start development server npm run build # Build for production npm run start # Start production server npm run lint # Run ESLint npm run type-check # TypeScript checking
npm run db:generate # Generate Prisma client npm run db:push # Push schema to database npm run db:seed # Seed with demo data npm run db:studio # Open Prisma Studio
npm run generate:master-prd # Generate master PRD npm run generate:all-prds # Generate complete PRD suite
npm run test # Run Jest tests npm run test:e2e # Run Playwright E2E tests npm run test:coverage # Coverage reports
๐จ Customization
Quick Branding Updates
- Logo & Name: Edit src/components/layout/sidebar.tsx
- Colors: Modify tailwind.config.ts
- Metadata: Update src/app/layout.tsx
Add Authentication Providers
- Configure providers in src/lib/auth.ts
- Add environment variables to .env.local
- Update sign-in UI in src/components/auth/
Database Customization
- Edit schema in prisma/schema.prisma
- Run migration: npx prisma db push
- Update seed data in prisma/seed.ts
๐ Deployment
Vercel (Recommended)
- Push to GitHub
- Import to Vercel
- Add environment variables: - DATABASE_URL (PostgreSQL) - NEXTAUTH_SECRET - NEXTAUTH_URL
- Deploy!
Docker
docker build -t project-starter . docker run -p 3000:3000 project-starter
Manual Deployment
npm run build
npx prisma migrate deploy npm start
# Force remove corrupted node_modules
rm -rf node_modules package-lock.json
npm cache clean --force
npm install# Fix npm cache permissions (macOS/Linux)
sudo chown -R $(whoami):$(id -gn) ~/.npm
npm cache clean --force# Explicitly set DATABASE_URL for Prisma commands
DATABASE_URL="file:./dev.db" npx prisma generate
DATABASE_URL="file:./dev.db" npx prisma db push
DATABASE_URL="file:./dev.db" npm run db:seedIf port 3000 is occupied, Next.js will automatically use the next available port (e.g., 3001). Check the terminal output for the correct URL.
# Use Node Version Manager if available
nvm install 18.20.0
nvm use 18.20.0
# Or ensure Node.js 18+ is installed
node --version # Should show v18.x or higher- Delete the entire project folder and re-clone
- Ensure you have the latest Node.js 18+ and npm 9+
- Try using Yarn instead:
yarn install - Check for system-specific issues in the GitHub Issues
๐ Documentation
- ./SETUP.md - Detailed setup instructions
- ./CONTRIBUTING.md - How to contribute
- ./DEPLOYMENT_CHECKLIST.md - Production deployment
- ./prd-system/workflows/ - PRD generation guides
๐ค Contributing
We welcome contributions! Please see our ./CONTRIBUTING.md for details.
- Fork the repository
- Create a feature branch: git checkout -b feature/amazing-feature
- Make your changes
- Run tests: npm run test && npm run lint
- Commit changes: npm run commit
- Push and create a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- https://nextjs.org/ - The React framework for production
- https://prisma.io/ - Next-generation Node.js and TypeScript ORM
- https://ui.shadcn.com/ - Beautifully designed components
- https://next-auth.js.org/ - Complete authentication solution
- https://tailwindcss.com/ - A utility-first CSS framework
๐ What's Next?
This template provides a solid foundation. Consider extending it with:
- Real-time Features - WebSocket integration for live updates
- Advanced Analytics - Custom dashboards and insights
- File Management - Document and image handling
- Mobile Apps - React Native companion apps
- AI Integration - Smart suggestions and automation
Built with โค๏ธ for developers who want to focus on building features, not boilerplate.
โญ Star this repo if it helped you!