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!