Skip to content

Babalsaab/Project_Starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿš€ Project Starter - Professional Development Template

The ultimate starting point for modern web applications - A comprehensive, production-ready template with a working TaskFlow demo application and professional PRD generation system.

Next.js TypeScript Prisma TailwindCSS License: MIT


๐ŸŽฏ What This Repository Provides

โœ… Complete Working Demo Application

  • 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

โœ… Comprehensive PRD Generation System

  • 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

โœ… Production Infrastructure

  • 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

๐Ÿš€ Quick Start (< 5 minutes)

Prerequisites

  • Node.js 18+ and npm 9+
  • Git

1. Clone and Setup

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 install

2. Environment Configuration

cp .env.example .env.local
# Edit .env.local with your configuration

3. Database Setup

# 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:seed

4. Start Development

npm 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 Email 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

Development

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

Database

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

PRD Generation

npm run generate:master-prd # Generate master PRD npm run generate:all-prds # Generate complete PRD suite

Testing

npm run test # Run Jest tests npm run test:e2e # Run Playwright E2E tests npm run test:coverage # Coverage reports


๐ŸŽจ Customization

Quick Branding Updates

  1. Logo & Name: Edit src/components/layout/sidebar.tsx
  2. Colors: Modify tailwind.config.ts
  3. Metadata: Update src/app/layout.tsx

Add Authentication Providers

  1. Configure providers in src/lib/auth.ts
  2. Add environment variables to .env.local
  3. Update sign-in UI in src/components/auth/

Database Customization

  1. Edit schema in prisma/schema.prisma
  2. Run migration: npx prisma db push
  3. Update seed data in prisma/seed.ts

๐Ÿš€ Deployment

Vercel (Recommended)

  1. Push to GitHub
  2. Import to Vercel
  3. Add environment variables: - DATABASE_URL (PostgreSQL) - NEXTAUTH_SECRET - NEXTAUTH_URL
  4. Deploy!

Docker

docker build -t project-starter . docker run -p 3000:3000 project-starter

Manual Deployment

npm run build

Set up PostgreSQL database

npx prisma migrate deploy npm start


๐Ÿ›  Troubleshooting

Common Installation Issues

ENOTEMPTY Error (directory not empty)

# Force remove corrupted node_modules
rm -rf node_modules package-lock.json
npm cache clean --force
npm install

EACCES Permission Error

# Fix npm cache permissions (macOS/Linux)
sudo chown -R $(whoami):$(id -gn) ~/.npm
npm cache clean --force

Database Environment Variable Not Found

# 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:seed

Port Already in Use

If port 3000 is occupied, Next.js will automatically use the next available port (e.g., 3001). Check the terminal output for the correct URL.

Node.js Version Issues

# 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

Still Having Issues?

  1. Delete the entire project folder and re-clone
  2. Ensure you have the latest Node.js 18+ and npm 9+
  3. Try using Yarn instead: yarn install
  4. 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.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: npm run test && npm run lint
  5. Commit changes: npm run commit
  6. Push and create a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments


๐ŸŒŸ 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!

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages