Skip to content

MarkShawn2020/2025-03-04_vtrip

Repository files navigation

VTrip

VTrip - Visualize Your Trip

A modern web application for visualizing your travel trajectories with style

Features · Tech Stack · Development · Structure

Features

  • 🗺️ Interactive Map Visualization

    • Beautiful map rendering with AMap (Gaode Maps)
    • Travel route path visualization
    • City markers with information windows
    • Transportation mode indicators
  • 🎨 Modern UI/UX

    • Clean and intuitive interface
    • Responsive design
    • Dark mode support
    • Timeline visualization
  • 📝 Travel Input

    • Easy city list input
    • Date selection
    • Transportation mode selection
    • Notes and descriptions
  • 🛠️ Technical Stack

    • Next.js 14 App Router
    • Tailwind CSS
    • Shadcn/UI
    • AMap (Gaode Maps) for visualization
    • TypeScript

Development

  1. Clone the repository
git clone https://github.com/markshawn2020/vtrip.git
cd vtrip
  1. Install dependencies
pnpm install
  1. Set up environment variables
# Create a .env.local file with your AMap API key
echo "NEXT_PUBLIC_AMAP_API_KEY=your_amap_key_here" > .env.local
  1. Start development server
pnpm dev

Project Structure

.
├── app/                # Next.js App Router
│   ├── api/           # API routes
│   │   └── geocode/   # Geocoding API endpoint
│   ├── layout.tsx     # Root layout
│   └── page.tsx       # Main page with map and timeline
├── components/        
│   ├── travel/       # Travel related components
│   │   ├── MapPlaceholder.tsx  # AMap visualization
│   │   ├── TravelInput.tsx     # Input form for travel points
│   │   ├── TravelList.tsx      # Timeline visualization
│   │   └── types.ts            # Type definitions
│   └── ui/           # Shared UI components
├── utils/            # Utility functions
│   └── amap.ts       # AMap helper functions
└── public/           # Static assets

License

MIT License © 2025 VTrip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages