https://github.com/underprotectiondev/uploads-uploadthing
https://github.com/underprotectiondev/uploads-uploadthing
file-upload next-safe-action nextjs nextjs15 uploadthing
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/underprotectiondev/uploads-uploadthing
- Owner: UnderprotectionDev
- Created: 2025-01-20T13:33:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T03:04:36.000Z (over 1 year ago)
- Last Synced: 2025-01-29T03:57:19.825Z (over 1 year ago)
- Topics: file-upload, next-safe-action, nextjs, nextjs15, uploadthing
- Language: TypeScript
- Homepage:
- Size: 876 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UploadThing File Upload Demo 📤
A modern file upload application built with Next.js and UploadThing, featuring a clean UI and seamless file management.
[](https://nextjs.org/)
[](https://www.typescriptlang.org/)
[](https://tailwindcss.com/)
[](https://ui.shadcn.com/)
[](https://zod.dev/)
[](https://uploadthing.com/)
[](https://www.prisma.io/)
[](https://www.postgresql.org/)
## ✨ Features
| Feature | Description |
| ----------------------- | --------------------------------------------- |
| 🎨 **Modern UI** | Beautiful interface with Shadcn/ui components |
| 📤 **Drag & Drop** | Easy drag and drop file uploads |
| 🖼️ **Image Preview** | Built-in image preview and management |
| 📱 **Responsive** | Fully responsive design for all devices |
| ⚡ **Fast Upload** | Quick uploads powered by UploadThing |
| 🔒 **Secure Handling** | Secure and reliable file handling |
| 🗄️ **Database Storage** | Efficient storage with Prisma |
## 🚀 Quick Start
```bash
# Clone the repository
git clone https://github.com/yourusername/uploads-uploadthing.git
# Navigate to the project
cd uploads-uploadthing
# Install dependencies
npm install
# Set up environment variables
cp .env
# Set up the database
npx prisma generate
npx prisma db push
# Start development server
npm run dev
```
Visit [http://localhost:3000](http://localhost:3000) to see your application
## 🛠️ Tech Stack
Click to expand tech stack details
- **Framework**: [Next.js 15](https://nextjs.org/)
- **Language**: [TypeScript](https://www.typescriptlang.org/)
- **Styling**: [Tailwind CSS](https://tailwindcss.com/)
- **UI Components**: [shadcn/ui](https://ui.shadcn.com/)
- **File Upload**: [UploadThing](https://uploadthing.com/)
- **Database**: [Neon](https://neon.tech/)
- **Database ORM**: [Prisma](https://www.prisma.io/)
- **Form Handling**: [React Hook Form](https://react-hook-form.com/)
- **Type Safe Server Actions**: [Next Safe Action](https://next-safe-action.dev/)
- **Validation**: [Zod](https://zod.dev/)
- **Icons**: [Lucide React](https://lucide.dev/)
- **Toast Notifications**: [Sonner](https://sonner.emilkowal.ski/)
## 📸 Screenshots
### Upload Form

### Upload Form Completed

## 🔐 Environment Variables
Create a `.env` file in the root directory with the following variables:
```env
UPLOADTHING_TOKEN=
DATABASE_URL=""
```