Skip to content

RamonsArchive/GoldenEagle

Repository files navigation

Golden Eagle Construction & Remodeling

A modern, full-stack web application for Golden Eagle Construction & Remodeling, built with Next.js 15, TypeScript, and Prisma. This application serves as a comprehensive business platform showcasing construction services, managing projects, and handling customer inquiries.

πŸš€ Tech Stack

Frontend

  • Next.js 15 - React framework with App Router
  • React 19 - Latest React with concurrent features
  • TypeScript 5 - Type-safe JavaScript
  • Tailwind CSS 4 - Utility-first CSS framework
  • GSAP - Professional animation library
  • Lenis - Smooth scrolling library

Backend & Database

  • Prisma 6 - Type-safe database ORM
  • MySQL - Primary database
  • Next.js API Routes - Server-side API endpoints
  • Server Actions - Modern form handling

Infrastructure & Services

  • AWS S3 - File storage and image hosting
  • Vercel - Deployment and hosting platform
  • Sentry - Error monitoring and performance tracking
  • Upstash Redis - Rate limiting and caching

Development Tools

  • ESLint - Code linting and formatting
  • PostCSS - CSS processing
  • Prisma Studio - Database management interface

πŸ“ Project Structure

GoldenEagle/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ (pages)/           # Main page routes
β”‚   β”‚   β”œβ”€β”€ (quicklinks)/      # Quick access routes
β”‚   β”‚   β”œβ”€β”€ admin/             # Admin dashboard routes
β”‚   β”‚   β”œβ”€β”€ api/               # API endpoints
β”‚   β”‚   β”œβ”€β”€ write/             # Dynamic content routes
β”‚   β”‚   β”œβ”€β”€ contexts/          # React contexts
β”‚   β”‚   β”œβ”€β”€ fonts/             # Custom font files
β”‚   β”‚   └── globals.css        # Global styles
β”‚   β”œβ”€β”€ components/            # Reusable React components
β”‚   β”‚   β”œβ”€β”€ admin/             # Admin-specific components
β”‚   β”‚   └── ui/                # UI utility components
β”‚   β”œβ”€β”€ constants/             # Application constants
β”‚   β”œβ”€β”€ lib/                   # Utility libraries
β”‚   β”‚   β”œβ”€β”€ actions.ts         # Server actions
β”‚   β”‚   β”œβ”€β”€ prisma.ts          # Database client
β”‚   β”‚   β”œβ”€β”€ s3.ts              # AWS S3 utilities
β”‚   β”‚   β”œβ”€β”€ rateLimiter.ts     # Rate limiting logic
β”‚   β”‚   └── utils.ts           # Helper functions
β”‚   └── types/                 # TypeScript type definitions
β”œβ”€β”€ prisma/                    # Database schema and migrations
β”œβ”€β”€ public/                    # Static assets
β”‚   β”œβ”€β”€ assets/               # Image and video content
β”‚   β”‚   β”œβ”€β”€ Backdrops/        # Background images
β”‚   β”‚   β”œβ”€β”€ BathRoomRemodel/  # Service-specific content
β”‚   β”‚   β”œβ”€β”€ Concrete/         # Service-specific content
β”‚   β”‚   β”œβ”€β”€ CustomHome/       # Service-specific content
β”‚   β”‚   β”œβ”€β”€ Fences/           # Service-specific content
β”‚   β”‚   β”œβ”€β”€ KitchenRemodel/   # Service-specific content
β”‚   β”‚   β”œβ”€β”€ Painting/         # Service-specific content
β”‚   β”‚   β”œβ”€β”€ Patio/            # Service-specific content
β”‚   β”‚   └── Roofing/          # Service-specific content
β”‚   └── Icons/                # SVG icons and logos
└── configuration files        # Various config files

πŸ› οΈ Key Features

Business Management

  • Project Management - Track construction projects from inquiry to completion
  • Customer Management - Handle project tickets and customer communications
  • Service Catalog - Showcase different construction services
  • Before/After Galleries - Visual project documentation
  • Testimonials System - Customer feedback management

Admin Dashboard

  • Content Management - Upload and manage images, videos, and content
  • Project Tracking - Monitor project status and customer inquiries
  • User Management - Admin authentication and role management
  • Analytics - Track website performance and user engagement

Technical Features

  • Responsive Design - Mobile-first approach
  • Lazy Loading - Optimized content loading
  • Image Optimization - Automatic image compression and delivery
  • SEO Optimized - Search engine friendly structure
  • Performance Monitoring - Sentry integration for error tracking

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • MySQL database
  • AWS S3 bucket
  • Vercel account (for deployment)

Installation

  1. Clone the repository

    git clone <repository-url>
    cd GoldenEagle
  2. Install dependencies

    npm install
  3. Environment Setup Create a .env.local file with:

    DATABASE_URL="mysql://user:password@localhost:3306/goldeneagle"
    AWS_S3_BUCKET_NAME="your-bucket-name"
    AWS_ACCESS_KEY_ID="your-access-key"
    AWS_SECRET_ACCESS_KEY="your-secret-key"
    AWS_REGION="us-east-2"
    JWT_SECRET="your-jwt-secret"
    UPSTASH_REDIS_REST_URL="your-redis-url"
    UPSTASH_REDIS_REST_TOKEN="your-redis-token"
    SENTRY_DSN="your-sentry-dsn"
  4. Database Setup

    npx prisma generate
    npx prisma db push
  5. Run Development Server

    npm run dev
  6. Open Application Navigate to http://localhost:3000

πŸ“± 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
  • npx prisma studio - Open database management interface

πŸ—„οΈ Database Schema

The application uses a comprehensive database schema with the following main models:

  • AuthenticatedUser - Admin user management
  • ProjectTicket - Customer project inquiries
  • CareerTicket - Job application management
  • Image - Media asset management
  • Testimonial - Customer feedback system
  • Service - Construction service definitions

🎨 Styling & UI

  • Tailwind CSS 4 for utility-first styling
  • Custom CSS variables for consistent theming
  • Responsive design with mobile-first approach
  • GSAP animations for smooth interactions
  • Lenis smooth scrolling for enhanced UX

πŸ”’ Security Features

  • JWT authentication for admin access
  • Rate limiting to prevent abuse
  • Input validation with Zod schemas
  • Secure file uploads with type checking
  • Environment variable protection

πŸš€ Deployment

Vercel Deployment

  1. Connect your GitHub repository to Vercel
  2. Configure environment variables in Vercel dashboard
  3. Deploy automatically on push to main branch

Environment Variables Required

  • Database connection string
  • AWS S3 credentials
  • JWT secret
  • Redis connection details
  • Sentry DSN for monitoring

πŸ“Š Monitoring & Analytics

  • Sentry for error tracking and performance monitoring
  • Vercel Analytics for user behavior insights
  • Custom logging for business metrics

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

πŸ“„ License

This project is proprietary software for Golden Eagle Construction & Remodeling.

πŸ†˜ Support

For technical support or questions about the application, please contact the development team or refer to the internal documentation.


Built with ❀️ using Next.js 15, TypeScript, and modern web technologies

About

company website for Golden Eagle (Estates & Development )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages