Streamline Your Business Operations with Intelligent Document Management
High Range Star is a comprehensive Next.js-based document management platform designed specifically for businesses that handle complex quotation workflows, purchase orders, delivery notes, and invoicing processes. Built with modern web technologies and Firebase integration, it provides a seamless experience for managing business documents and operations.
- Quotation Management: Create, edit, and track quotations with version control
- Purchase Order Processing: Handle purchase orders with automated workflows
- Delivery Notes: Manage delivery documentation with digital signatures
- Invoice Generation: Automated invoice creation and tracking
- Thread-based Organization: Group related documents for better organization
- Vessel Management: Complete CRUD operations for vessel information
- Customer Management: Track customer data and interactions
- Template System: Pre-built quotation templates for quick generation
- Status Tracking: Real-time status updates for all business processes
- Interactive Dashboard: Comprehensive overview of business metrics
- Sales Analytics: Monthly sales charts and performance tracking
- Statistics Visualization: Advanced charts and graphs using ApexCharts
- Demographic Insights: Customer and market analysis tools
- Recent Orders: Quick access to latest transactions
- Firebase Authentication: Secure user login and session management
- Role-based Access: Admin and user permission systems
- Data Validation: Client and server-side validation
- Secure File Upload: Protected document storage and retrieval
- Responsive Design: Optimized for desktop, tablet, and mobile
- Dark/Light Theme: Toggle between themes with persistent preferences
- Intuitive Navigation: Collapsible sidebar with smooth animations
- Real-time Updates: Live data synchronization across the platform
- Drag & Drop: Easy file uploads and document management
- Next.js 15.2.3 - React framework with App Router
- React 19 - Latest React with concurrent features
- TypeScript 5.0 - Type-safe development
- Tailwind CSS 4.0 - Utility-first styling framework
- ApexCharts - Interactive data visualization
- React DnD - Drag and drop functionality
- Firebase 12.3.0 - Backend-as-a-Service
- Firestore - NoSQL document database
- Firebase Auth - User authentication
- Firebase Analytics - Usage tracking
- ESLint - Code linting and quality
- Prettier - Code formatting
- PostCSS - CSS processing
- SVGR - SVG optimization
- Node.js 18+
- npm or yarn
- Firebase project
-
Clone the repository
git clone <repository-url> cd HighRangeStarApp-main
-
Install dependencies
npm install # or yarn install -
Firebase Setup
- Create a Firebase project at Firebase Console
- Enable Firestore Database
- Configure Firebase Auth
- Update
src/lib/firebase.tswith your project credentials
-
Environment Configuration
cp .env.example .env.local # Add your Firebase configuration -
Run the development server
npm run dev # or yarn dev -
Open your browser Navigate to http://localhost:3000
src/
βββ app/ # Next.js App Router
β βββ (admin)/ # Admin dashboard pages
β βββ (full-width-pages)/ # Authentication and error pages
β βββ layout.tsx # Root layout
βββ components/ # Reusable UI components
β βββ auth/ # Authentication components
β βββ charts/ # Data visualization
β βββ ecommerce/ # Dashboard widgets
β βββ form/ # Form components
β βββ quotation/ # Quotation-specific components
β βββ ui/ # Base UI components
βββ context/ # React Context providers
β βββ AuthContext.tsx # Authentication state
β βββ ThemeContext.tsx # Theme management
β βββ QuotationStore.tsx # Business logic
β βββ SidebarContext.tsx # Navigation state
βββ hooks/ # Custom React hooks
βββ icons/ # SVG icon components
βββ layout/ # Layout components
βββ lib/ # Utility libraries
β βββ firebase.ts # Firebase configuration
β βββ vesselService.ts # Vessel operations
βββ types/ # TypeScript type definitions
Detailed Firebase configuration guide available in FIREBASE_SETUP.md
Production-ready security rules documented in firestore-security-rules.md
- Real-time Metrics: Customer count, order statistics
- Sales Analytics: Monthly sales charts and trends
- Performance Tracking: Visual statistics and KPIs
- Quick Actions: Fast access to common operations
- Quotation Workflow: Create β Review β Accept/Decline β Revise
- Purchase Orders: Upload and track purchase documentation
- Delivery Notes: Generate and manage delivery documentation
- Invoice Generation: Automated invoice creation from quotations
- CRUD Operations: Complete vessel information management
- Search & Filter: Advanced search capabilities
- Validation: Data integrity and duplicate prevention
- Responsive Interface: Mobile-optimized vessel management
- Create Quotation β Customer receives quote
- Customer Response β Accept/Decline/Request Changes
- Purchase Order β Upload customer PO documents
- Delivery Planning β Generate delivery notes
- Invoice Generation β Create final invoice
- Completion β Mark thread as completed
- Authentication: Firebase Auth with email/password
- Authorization: Role-based access control
- Data Validation: Client and server-side validation
- Secure Storage: Firebase Firestore with security rules
- Session Management: Persistent and temporary sessions
- Firebase Analytics: User behavior tracking
- Performance Metrics: Application performance monitoring
- Error Tracking: Automated error reporting
- Usage Statistics: Feature utilization analytics
- Responsive Design: Mobile-first approach
- Dark Mode: Toggle between light and dark themes
- Smooth Animations: Enhanced user experience
- Accessibility: WCAG compliance considerations
- Modern Components: Latest UI patterns and interactions
npm run build
npm startfirebase deploy-
Copy the example environment file:
cp .env.example .env.local
-
Update
.env.localwith your Firebase configuration:# Firebase Configuration NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key_here NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project_id.firebaseapp.com NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project_id.firebasestorage.app NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=your_measurement_id
Configure these environment variables in your production environment:
NEXT_PUBLIC_FIREBASE_API_KEYNEXT_PUBLIC_FIREBASE_AUTH_DOMAINNEXT_PUBLIC_FIREBASE_PROJECT_IDNEXT_PUBLIC_FIREBASE_STORAGE_BUCKETNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_IDNEXT_PUBLIC_FIREBASE_APP_IDNEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
.env.local or any file containing actual API keys to version control.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is proprietary software. All rights reserved.
For support and questions:
- Create an issue in the repository
- Contact the development team
- Check the documentation in the
/docsfolder