Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
/ ready-set Public archive

On-demand courier that specializes in delivery for all your needs. We are Food Safety, and HIPPA Certified. Our team can meet all your Bay Area delivery needs.

License

Notifications You must be signed in to change notification settings

Ealanisln/ready-set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-User Delivery Service Platform

A comprehensive web application for managing delivery services, built with Next.js, PostgreSQL, and Shadcn components.

Overview

This platform allows users to register as drivers, vendors, and clients, facilitating a seamless delivery service experience. It's designed to handle user management using PostgreSQL, with a modern and responsive frontend powered by Next.js and Shadcn components.

Features

User Registration and Management

  • Multiple user types: Drivers, Vendors, and Clients
  • Secure authentication and authorization

Fast and Reliable Delivery Solutions

  • Same-day delivery
  • On-demand services
  • Emergency last-minute deliveries

On-the-Go Courier Assistance

  • Quick pickup and delivery
  • Experienced and trained couriers

Catering Delivery & Setup

  • Event planning assistance
  • Food transport and presentation services

Versatile Delivery Options

  • Handling various items beyond food (documents, medical supplies, etc.)
  • Ensuring safe and timely deliveries

Priority Handling for Urgent Requests

  • Rapid response to time-sensitive deliveries

Professional Standards

  • Comprehensive driver training programs
  • HIPAA compliance
  • Food Handlers Certification (California standards)
  • Strict dress code and safety protocols

Technical Stack

  • Frontend: Next.js
  • Backend: Next.js API routes
  • Database: PostgreSQL with Prisma ORM
  • UI Components: Shadcn

Getting Started

[Include installation and setup instructions here]

Documentation

[Link to or include basic documentation about how to use the platform]

Blog

Stay updated with our latest news and valuable information about our services through our blog section.

Contributing

[Include information about how others can contribute to the project, if applicable]

License

[Specify the license under which your project is released]

Contact

[Provide contact information or links for support and inquiries]

Highlight.run Integration

This project is configured with Highlight.run for session replay, error monitoring, and fullstack debugging. It uses the official @highlight-run/next package for Next.js integration.

Environment Variables

Add the following environment variable to your .env.local file:

# Highlight.run API Key for sourcemap uploads
HIGHLIGHT_PROJECT_API_KEY=your_api_key_here

Features Enabled

  • Session replay to view user interactions
  • Frontend error monitoring with automatic sourcemap uploads
  • Server-side error tracking and logging
  • User identification integrated with authentication system
  • React error boundary integration
  • Network request tracing
  • Full-stack distributed tracing across frontend and backend

How It Works

  • Frontend initialization via HighlightInit in src/app/layout.tsx
  • Server-side tracing through instrumentation.ts
  • Error boundaries from @highlight-run/next/client
  • SSR error handling in src/app/error.tsx
  • Middleware integration for cookie-based session tracking
  • API route wrapping with withAppRouterHighlight
  • User identification in src/contexts/UserContext.tsx
  • Sourcemaps are uploaded during the build process

To view your application sessions and errors, visit app.highlight.io.

Build and Deployment Process

This project includes several safeguards to prevent build errors during deployment:

Local Development Checks

Before pushing your changes to GitHub, you can run these commands to catch potential issues early:

# Run a full build check - simulates Vercel environment
pnpm check-build

# Run just the type checker
pnpm typecheck

# Run linting
pnpm lint

Git Hooks

The project uses Husky to enforce pre-push checks:

  • Pre-push hook: Automatically runs type checking, Prisma generation, and linting before allowing you to push to GitHub

GitHub Actions

A GitHub Actions workflow runs on every push and pull request to ensure the build will succeed:

  • Runs on Ubuntu with Node.js 20
  • Uses PNPM with caching for faster builds
  • Performs TypeScript type checking
  • Runs a full build with the same environment variables as Vercel

Best Practices to Avoid Build Errors

  1. Strict TypeScript checking: The project is configured with strict TypeScript settings to catch type errors early

  2. Version pinning: All dependencies, especially Prisma, have their versions pinned to avoid inconsistencies

  3. Import statements: Always use explicit imports for types rather than namespace access:

    // ❌ Avoid this:
    if (error instanceof Prisma.PrismaClientKnownRequestError) { ... }
    
    // ✅ Use this instead:
    import { PrismaClientKnownRequestError } from '@prisma/client/runtime/library';
    if (error instanceof PrismaClientKnownRequestError) { ... }
  4. Run checks locally: Always run pnpm check-build before pushing to GitHub to verify your changes will build successfully on Vercel

About

On-demand courier that specializes in delivery for all your needs. We are Food Safety, and HIPPA Certified. Our team can meet all your Bay Area delivery needs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages