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.
- 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
- 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
- Node.js: 18.17 or later
- npm: 9.0 or later
- Git: For version control
-
Clone the repository
git clone <repository-url> cd longitude-rx
-
Install dependencies
# Using npm npm install -
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
-
Run the development server
npm run dev # or pnpm dev -
Open your browser Navigate to http://localhost:3000
# 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)Deploy to Vercel with one command:
npx vercel --prod --yes-
Build the project
npm run build
-
Deploy to Vercel
# Install Vercel CLI npm i -g vercel # Deploy vercel --prod
-
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
The project includes optimized Next.js configuration for production:
// next.config.mjs
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
},
}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
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
}- Primary Font: Inter (via @fontsource/inter)
- Display Font: Custom font classes for headings
- Body Font: Inter for body text
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
- Next.js 15: React framework with App Router
- React 19: Latest React with concurrent features
- TypeScript 5: Type-safe JavaScript development
- Tailwind CSS 3.4: Utility-first CSS framework
- Radix UI: Accessible component primitives
- Framer Motion: Animation library
- Lucide React: Icon library
- 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
- ESLint: Code linting
- PostCSS: CSS processing
- Autoprefixer: CSS vendor prefixing
- TypeScript: Static type checking
- 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
- Responsive Navbar: Mobile-optimized navigation
- Theme Toggle: Light/dark mode switching
- Mobile Menu: Collapsible mobile navigation
- Contact Forms: Multi-step contact forms
- Job Applications: Comprehensive job application system
- Newsletter Signup: Email subscription management
- File Uploads: Document and image upload capabilities
- 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
GET /api/jobs- Fetch job postings from ContentfulPOST /api/job-application- Submit job applicationsPOST /api/contact-form- Handle contact form submissionsPOST /api/newsletter-subscription- Newsletter signups
POST /api/test-upload-debug- File upload testingPOST /api/test-supabase-upload- Supabase file uploads
GET /api/test-contentful- Contentful integration testGET /api/test-monday- Monday.com integration testGET /api/test-supabase- Supabase connection test
- 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
- User Management: Authentication and profiles
- File Storage: Document and image storage
- Form Submissions: Contact and application data
- Real-time Updates: Live data synchronization
- Project Tracking: Development and deployment tracking
- Task Management: Team collaboration and workflows
- Automation: Workflow automation and notifications
- 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
- Lazy Loading: Component and image lazy loading
- Bundle Analysis: Optimized bundle sizes
- Tree Shaking: Unused code elimination
- Minification: Compressed production builds
- Meta Tags: Dynamic meta tag generation
- Structured Data: JSON-LD schema markup
- Accessibility: WCAG 2.1 AA compliance
- Performance: Core Web Vitals optimization
- TypeScript: Static type checking
- ESLint: Code style and quality enforcement
- Prettier: Code formatting (if configured)
- Husky: Git hooks for quality checks
- Unit Tests: Component and utility testing
- Integration Tests: API endpoint testing
- E2E Tests: User journey testing
- Performance Tests: Lighthouse and Core Web Vitals
- Supabase Auth: Secure user authentication
- Role-based Access: Admin and user permissions
- API Security: Rate limiting and validation
- Data Encryption: Encrypted data transmission
- HIPAA Compliance: Healthcare data security
- GDPR Compliance: European data protection
- Input Validation: XSS and injection prevention
- HTTPS Only: Secure communication protocols
- Vercel Analytics: Built-in performance tracking
- Core Web Vitals: User experience metrics
- Error Tracking: Application error monitoring
- Uptime Monitoring: Service availability tracking
- Page Views: Traffic and engagement metrics
- User Behavior: Navigation and interaction patterns
- Conversion Tracking: Form submissions and goals
- A/B Testing: Performance optimization testing
- Automatic Deployments: Git-based deployment triggers
- Preview Deployments: Pull request previews
- Production Deployments: Main branch deployments
- Environment Management: Staging and production configs
- Build Automation: Automatic build on push
- Testing Integration: Automated test execution
- Quality Gates: Build success requirements
- Rollback Capability: Quick deployment rollbacks
- Development: Local development environment
- Staging: Pre-production testing environment
- Production: Live production environment
- Environment Variables: Secure configuration management
- API Documentation: Endpoint specifications
- Component Library: UI component documentation
- Design System: Color, typography, and spacing guides
- Architecture: System design and data flow
- Next.js Docs: nextjs.org/docs
- React Docs: react.dev
- Tailwind CSS: tailwindcss.com/docs
- Radix UI: radix-ui.com
- Framer Motion: framer.com/motion
- HIPAA Guidelines: Healthcare data security standards
- Healthcare APIs: Industry-standard integrations
- Compliance Tools: Regulatory compliance resources
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes: Follow coding standards and guidelines
- Test thoroughly: Ensure all tests pass
- Submit a pull request: Include detailed description of changes
- TypeScript: Strict type checking enabled
- ESLint: Follow project linting rules
- Prettier: Consistent code formatting
- Commit Messages: Conventional commit format
- Code Review: All changes require review
- Testing: Automated and manual testing
- Documentation: Update relevant documentation
- Deployment: Staging deployment before production
This project is proprietary software owned by Longitude Rx. All rights reserved.
- GitHub Issues: Report bugs and feature requests
- Documentation: Comprehensive project documentation
- Team Chat: Internal development team communication
- Website: longituderx.org
- Email: Contact through website contact forms
- Phone: Available through business contact channels
- Critical Issues: Immediate escalation procedures
- Security Issues: Secure reporting channels
- Production Issues: 24/7 support team contacts
# 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 checkingapp/page.tsx- Homepagecomponents/- Reusable componentslib/- Utility functions and clientstailwind.config.ts- Design system configurationnext.config.mjs- Next.js configuration
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- Production: your-vercel-domain.vercel.app
- Staging: your-vercel-domain-git-staging-branch.vercel.app
Built with β€οΈ by the Longitude Rx team for the future of healthcare technology.