A Google Drive clone built with Next.js, featuring folder navigation and file browsing. Following a tutorial by Theo.
pnpm install
pnpm dev
Environment variables (see .env.example):
Scripts:
pnpm dev - Development server with Turbopackpnpm build - Production buildpnpm db:push - Push schema to databasepnpm db:studio - Open Drizzle Studiodrive-store/
├── src/
│ ├── app/
│ │ ├── page.tsx - Root redirect to /f/1
│ │ ├── layout.tsx - Root layout
│ │ ├── drive-contents.tsx - File/folder listing component
│ │ ├── file-row.tsx - File/folder row components
│ │ └── f/[folderId]/page.tsx - Dynamic folder route
│ ├── components/ui/
│ │ └── button.tsx - UI button component
│ ├── lib/
│ │ ├── utils.ts - Utility functions
│ │ └── mock-data.ts - Sample data for development
│ ├── server/db/
│ │ ├── index.ts - Database connection
│ │ ├── schema.ts - Files and folders tables
│ │ └── queries.ts - Database queries
│ └── env.js - Environment validation
├── drizzle.config.ts
├── next.config.js
└── package.json