Skip to content

RishCoder-Tech/longitude-rx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

198 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Longitude Rx - Healthcare Technology Platform

Next.js React TypeScript Tailwind CSS Vercel

πŸ₯ Project Overview

Longitude Rx is a revolutionary healthcare technology platform designed to transform specialty pharmacy operations for health systems. Built by health systems for health systems, we provide innovative solutions that improve patient care, enhance financial performance, and streamline medication access.

🌟 Key Features

  • Specialty Pharmacy Revenue Capture - Optimize prescription capture and revenue generation
  • 340B Program Optimization - Maximize performance and compliance
  • Market Access Expansion - Secure payer and PBM network inclusion
  • Next-Generation Technology - AI-powered predictive workflows and data analytics
  • Health System Collaboration - Built on collaborative innovation principles

πŸ—οΈ Architecture

  • Frontend: Next.js 15 with React 19 and TypeScript
  • Styling: Tailwind CSS with custom healthcare color palette
  • Animations: Framer Motion for smooth, engaging user experiences
  • UI Components: Radix UI primitives with custom styling
  • State Management: React hooks and context for state management
  • Deployment: Vercel for production hosting

πŸš€ Quick Start

Prerequisites

  • Node.js: 18.17 or later
  • npm: 9.0 or later
  • Git: For version control

Installation

  1. Clone the repository

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

    # Using npm
    npm install
    
    
    
  3. Set up environment variables

    cp .env.example .env.local

    Configure the following environment variables:

    # Contentful CMS
    CONTENTFUL_SPACE_ID=your_space_id
    CONTENTFUL_ACCESS_TOKEN=your_access_token
    
    # Monday.com Integration
    MONDAY_API_TOKEN=your_monday_token
    MONDAY_BOARD_ID=your_board_id
    
    # Sanity CMS (optional)
    NEXT_PUBLIC_SANITY_PROJECT_ID=your_project_id
    NEXT_PUBLIC_SANITY_DATASET=production
    SANITY_API_TOKEN=your_api_token
  4. Run the development server

    npm run dev
    # or
    pnpm dev
  5. Open your browser Navigate to http://localhost:3000

πŸ› οΈ Development Commands

# Development server
npm run dev          # Start development server
pnpm dev            # Start development server (pnpm)

# Build and production
npm run build       # Build for production
npm run start       # Start production server
pnpm build         # Build for production (pnpm)
pnpm start         # Start production server (pnpm)

# Code quality
npm run lint        # Run ESLint
pnpm lint          # Run ESLint (pnpm)

# Package management
npm install         # Install dependencies
npm update          # Update dependencies
pnpm install       # Install dependencies (pnpm)
pnpm update        # Update dependencies (pnpm)

πŸš€ Deployment

Production Deployment

Deploy to Vercel with one command:

npx vercel --prod --yes

Manual Deployment Steps

  1. Build the project

    npm run build
  2. Deploy to Vercel

    # Install Vercel CLI
    npm i -g vercel
    
    # Deploy
    vercel --prod
  3. Environment Variables Ensure all production environment variables are set in your Vercel dashboard:

    • Go to Project Settings β†’ Environment Variables
    • Add all required environment variables from .env.local

Deployment Configuration

The project includes optimized Next.js configuration for production:

// next.config.mjs
const nextConfig = {
  eslint: {
    ignoreDuringBuilds: true,
  },
  typescript: {
    ignoreBuildErrors: true,
  },
  images: {
    unoptimized: true,
  },
}

πŸ—οΈ Project Structure

longitude-rx/
β”œβ”€β”€ app/                          # Next.js 13+ App Router
β”‚   β”œβ”€β”€ about/                   # About page
β”‚   β”œβ”€β”€ admin/                   # Admin dashboard
β”‚   β”œβ”€β”€ api/                     # API routes
β”‚   β”‚   β”œβ”€β”€ applications/        # Job application endpoints
β”‚   β”‚   β”œβ”€β”€ contact-form/        # Contact form handling
β”‚   β”‚   β”œβ”€β”€ jobs/                # Job posting management
β”‚   β”‚   β”œβ”€β”€ newsletter-subscription/ # Newsletter signup
β”‚   β”‚   └── test-*/              # Testing and debug endpoints
β”‚   β”œβ”€β”€ careers/                 # Careers page (currently in maintenance)
β”‚   β”œβ”€β”€ case-studies/            # Case studies showcase
β”‚   β”œβ”€β”€ contact/                 # Contact page
β”‚   β”œβ”€β”€ newsletter/              # Newsletter page
β”‚   β”œβ”€β”€ services/                # Services overview
β”‚   β”œβ”€β”€ technologies/            # Technology stack
β”‚   β”œβ”€β”€ website/                 # Website services
β”‚   β”œβ”€β”€ globals.css              # Global styles
β”‚   β”œβ”€β”€ layout.tsx               # Root layout
β”‚   └── page.tsx                 # Home page
β”œβ”€β”€ components/                   # Reusable components
β”‚   β”œβ”€β”€ ui/                      # Base UI components (Radix UI)
β”‚   β”‚   β”œβ”€β”€ button.tsx          # Button component
β”‚   β”‚   β”œβ”€β”€ card.tsx            # Card component
β”‚   β”‚   β”œβ”€β”€ dialog.tsx          # Modal dialogs
β”‚   β”‚   β”œβ”€β”€ form.tsx            # Form components
β”‚   β”‚   └── ...                 # Other UI components
β”‚   β”œβ”€β”€ 3d-background.tsx       # 3D background effects
β”‚   β”œβ”€β”€ counter-animation.tsx   # Animated counters
β”‚   β”œβ”€β”€ data-flow-animation.tsx # Data flow animations
β”‚   β”œβ”€β”€ floating-cube.tsx       # Floating cube effects
β”‚   β”œβ”€β”€ footer.tsx              # Site footer
β”‚   β”œβ”€β”€ healthcare-leaders-scroll.tsx # Partner logos carousel
β”‚   β”œβ”€β”€ job-application-form.tsx # Job application form
β”‚   β”œβ”€β”€ navbar.tsx              # Navigation bar
β”‚   β”œβ”€β”€ particle-system.tsx     # Particle effects
β”‚   β”œβ”€β”€ scroll-animations.tsx   # Scroll-triggered animations
β”‚   β”œβ”€β”€ services-slider.tsx     # Services showcase slider
β”‚   β”œβ”€β”€ theme-provider.tsx      # Theme management
β”‚   └── webgl-background.tsx    # WebGL background effects
β”œβ”€β”€ hooks/                       # Custom React hooks
β”‚   β”œβ”€β”€ use-mobile.tsx          # Mobile detection hook
β”‚   └── use-toast.ts            # Toast notification hook
β”œβ”€β”€ lib/                         # Utility libraries
β”‚   β”œβ”€β”€ contentful.ts            # Contentful CMS integration
β”‚   β”œβ”€β”€ sanity.ts                # Sanity CMS integration
β”‚   β”œβ”€β”€ supabase.ts              # Supabase database client
β”‚   └── utils.ts                 # Utility functions
β”œβ”€β”€ public/                      # Static assets
β”‚   β”œβ”€β”€ images/                  # Image assets
β”‚   β”‚   β”œβ”€β”€ healthcare-*.jpg     # Healthcare-related images
β”‚   β”‚   β”œβ”€β”€ case-study-*.jpg     # Case study images
β”‚   β”‚   └── logos/               # Partner and company logos
β”‚   β”œβ”€β”€ hero-lottie.json         # Lottie animation file
β”‚   └── *.png                    # Various logo and image files
β”œβ”€β”€ sanity-schemas/              # Sanity CMS schemas
β”‚   β”œβ”€β”€ blogPost.js              # Blog post schema
β”‚   β”œβ”€β”€ caseStudy.js             # Case study schema
β”‚   └── job.js                   # Job posting schema
β”œβ”€β”€ styles/                      # Additional styles
β”œβ”€β”€ .env.example                 # Environment variables template
β”œβ”€β”€ components.json              # shadcn/ui configuration
β”œβ”€β”€ next.config.mjs              # Next.js configuration
β”œβ”€β”€ package.json                 # Dependencies and scripts
β”œβ”€β”€ tailwind.config.ts           # Tailwind CSS configuration
└── tsconfig.json                # TypeScript configuration

🎨 Design System

Color Palette

The project uses a custom healthcare-focused color palette defined in tailwind.config.ts:

colors: {
  gypsum: { 50: "#FAFCFF", 100: "#F3F7FF", ... },    // Light blues
  rhodamine: { 50: "#FDF2F8", 100: "#FCE7F3", ... }, // Pinks/reds
  admiral: { 50: "#F8FAFC", 100: "#F1F5F9", ... },   // Grays/blues
  ocean: { 50: "#F0F9FF", 100: "#E0F2FE", ... },     // Blues
  gulf: { 50: "#F0F9FF", 100: "#E0F2FE", ... },      // Light blues
}

Typography

  • Primary Font: Inter (via @fontsource/inter)
  • Display Font: Custom font classes for headings
  • Body Font: Inter for body text

Component Library

Built on Radix UI primitives with custom styling:

  • Accessibility: WCAG 2.1 AA compliant
  • Responsive: Mobile-first design approach
  • Interactive: Hover states, animations, and transitions
  • Consistent: Unified design language across components

πŸ”§ Core Technologies

Frontend Framework

  • Next.js 15: React framework with App Router
  • React 19: Latest React with concurrent features
  • TypeScript 5: Type-safe JavaScript development

Styling & UI

  • Tailwind CSS 3.4: Utility-first CSS framework
  • Radix UI: Accessible component primitives
  • Framer Motion: Animation library
  • Lucide React: Icon library

Backend & APIs

  • Next.js API Routes: Serverless API endpoints
  • Contentful: Headless CMS for content management
  • Supabase: Database and authentication
  • Sanity: Alternative CMS option
  • Monday.com: Project management integration

Development Tools

  • ESLint: Code linting
  • PostCSS: CSS processing
  • Autoprefixer: CSS vendor prefixing
  • TypeScript: Static type checking

πŸ“± Features & Components

Homepage

  • Hero Section: Animated hero with parallax effects
  • Statistics: Animated counters showing healthcare metrics
  • Services Overview: Interactive service cards
  • Testimonials: Customer success stories
  • Partner Showcase: Scrolling healthcare partner logos
  • Call-to-Action: Contact and engagement sections

Navigation

  • Responsive Navbar: Mobile-optimized navigation
  • Theme Toggle: Light/dark mode switching
  • Mobile Menu: Collapsible mobile navigation

Forms & Interactions

  • Contact Forms: Multi-step contact forms
  • Job Applications: Comprehensive job application system
  • Newsletter Signup: Email subscription management
  • File Uploads: Document and image upload capabilities

Animations & Effects

  • Scroll Animations: Triggered on scroll
  • 3D Backgrounds: WebGL and Three.js effects
  • Particle Systems: Interactive particle animations
  • Floating Elements: Animated UI elements
  • Loading States: Skeleton loaders and spinners

πŸ”Œ API Endpoints

Content Management

  • GET /api/jobs - Fetch job postings from Contentful
  • POST /api/job-application - Submit job applications
  • POST /api/contact-form - Handle contact form submissions
  • POST /api/newsletter-subscription - Newsletter signups

File Management

  • POST /api/test-upload-debug - File upload testing
  • POST /api/test-supabase-upload - Supabase file uploads

Integration Testing

  • GET /api/test-contentful - Contentful integration test
  • GET /api/test-monday - Monday.com integration test
  • GET /api/test-supabase - Supabase connection test

πŸ—„οΈ Data Management

Contentful CMS

  • Job Postings: Career opportunities and requirements
  • Case Studies: Success stories and testimonials
  • Blog Posts: Industry insights and updates
  • Rich Text: Formatted content with embedded media

Supabase Database

  • User Management: Authentication and profiles
  • File Storage: Document and image storage
  • Form Submissions: Contact and application data
  • Real-time Updates: Live data synchronization

Monday.com Integration

  • Project Tracking: Development and deployment tracking
  • Task Management: Team collaboration and workflows
  • Automation: Workflow automation and notifications

πŸš€ Performance Optimization

Next.js Optimizations

  • App Router: Latest Next.js routing system
  • Image Optimization: Next.js Image component
  • Code Splitting: Automatic route-based code splitting
  • Static Generation: Pre-rendered static pages

Frontend Performance

  • Lazy Loading: Component and image lazy loading
  • Bundle Analysis: Optimized bundle sizes
  • Tree Shaking: Unused code elimination
  • Minification: Compressed production builds

SEO & Accessibility

  • Meta Tags: Dynamic meta tag generation
  • Structured Data: JSON-LD schema markup
  • Accessibility: WCAG 2.1 AA compliance
  • Performance: Core Web Vitals optimization

πŸ§ͺ Testing & Quality

Code Quality

  • TypeScript: Static type checking
  • ESLint: Code style and quality enforcement
  • Prettier: Code formatting (if configured)
  • Husky: Git hooks for quality checks

Testing Strategy

  • Unit Tests: Component and utility testing
  • Integration Tests: API endpoint testing
  • E2E Tests: User journey testing
  • Performance Tests: Lighthouse and Core Web Vitals

πŸ”’ Security

Authentication & Authorization

  • Supabase Auth: Secure user authentication
  • Role-based Access: Admin and user permissions
  • API Security: Rate limiting and validation
  • Data Encryption: Encrypted data transmission

Data Protection

  • HIPAA Compliance: Healthcare data security
  • GDPR Compliance: European data protection
  • Input Validation: XSS and injection prevention
  • HTTPS Only: Secure communication protocols

πŸ“Š Monitoring & Analytics

Performance Monitoring

  • Vercel Analytics: Built-in performance tracking
  • Core Web Vitals: User experience metrics
  • Error Tracking: Application error monitoring
  • Uptime Monitoring: Service availability tracking

User Analytics

  • Page Views: Traffic and engagement metrics
  • User Behavior: Navigation and interaction patterns
  • Conversion Tracking: Form submissions and goals
  • A/B Testing: Performance optimization testing

πŸš€ Deployment & DevOps

Vercel Deployment

  • Automatic Deployments: Git-based deployment triggers
  • Preview Deployments: Pull request previews
  • Production Deployments: Main branch deployments
  • Environment Management: Staging and production configs

CI/CD Pipeline

  • Build Automation: Automatic build on push
  • Testing Integration: Automated test execution
  • Quality Gates: Build success requirements
  • Rollback Capability: Quick deployment rollbacks

Environment Management

  • Development: Local development environment
  • Staging: Pre-production testing environment
  • Production: Live production environment
  • Environment Variables: Secure configuration management

πŸ“š Documentation & Resources

Project Documentation

  • API Documentation: Endpoint specifications
  • Component Library: UI component documentation
  • Design System: Color, typography, and spacing guides
  • Architecture: System design and data flow

External Resources

Healthcare Resources

  • HIPAA Guidelines: Healthcare data security standards
  • Healthcare APIs: Industry-standard integrations
  • Compliance Tools: Regulatory compliance resources

🀝 Contributing

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes: Follow coding standards and guidelines
  4. Test thoroughly: Ensure all tests pass
  5. Submit a pull request: Include detailed description of changes

Code Standards

  • TypeScript: Strict type checking enabled
  • ESLint: Follow project linting rules
  • Prettier: Consistent code formatting
  • Commit Messages: Conventional commit format

Review Process

  • Code Review: All changes require review
  • Testing: Automated and manual testing
  • Documentation: Update relevant documentation
  • Deployment: Staging deployment before production

πŸ“„ License

This project is proprietary software owned by Longitude Rx. All rights reserved.

πŸ†˜ Support & Contact

Technical Support

  • GitHub Issues: Report bugs and feature requests
  • Documentation: Comprehensive project documentation
  • Team Chat: Internal development team communication

Business Inquiries

  • Website: longituderx.org
  • Email: Contact through website contact forms
  • Phone: Available through business contact channels

Emergency Contacts

  • Critical Issues: Immediate escalation procedures
  • Security Issues: Secure reporting channels
  • Production Issues: 24/7 support team contacts

🎯 Quick Reference

Essential Commands

# Development
npm run dev                    # Start dev server
pnpm dev                      # Start dev server (pnpm)

# Build & Deploy
npm run build                 # Build for production
npx vercel --prod --yes      # Deploy to production

# Code Quality
npm run lint                  # Run linting
npm run type-check           # TypeScript checking

Key Files

  • app/page.tsx - Homepage
  • components/ - Reusable components
  • lib/ - Utility functions and clients
  • tailwind.config.ts - Design system configuration
  • next.config.mjs - Next.js configuration

Environment Variables

CONTENTFUL_SPACE_ID=your_space_id
CONTENTFUL_ACCESS_TOKEN=your_access_token
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key

Deployment URL


Built with ❀️ by the Longitude Rx team for the future of healthcare technology.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors