A modern Next.js application for managing and selling video content using ImageKit integration. This project provides a full-featured platform with user authentication, video upload capabilities, and payment processing using Razorpay.
Clone the repository:
git clone <repository-url>
cd imagekit-video-main
Install dependencies:
npm install
Configure environment variables:
.env.example
to .env
Run the development server:
npm run dev
Open http://localhost:3000 in your browser
Create a .env
file with the following variables:
# Database
MONGODB_URI=
# Authentication
NEXTAUTH_SECRET=
NEXTAUTH_URL=
# ImageKit
IMAGEKIT_PUBLIC_KEY=
IMAGEKIT_PRIVATE_KEY=
IMAGEKIT_URL_ENDPOINT=
# Razorpay
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
# Email (SMTP)
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASS=
npm run dev
- Start development servernpm run build
- Build production applicationnpm run start
- Start production servernpm run lint
- Run ESLintnpm run seed
- Seed the databasenpm run mailtrap
- Test email configurationāāā app/ # Next.js app directory
ā āāā api/ # API routes
ā āāā components/ # Reusable components
ā āāā login/ # Login page
ā āāā register/ # Registration page
ā āāā upload/ # Video upload page
āāā lib/ # Utility functions
āāā models/ # MongoDB models
āāā public/ # Static assets
āāā types.d.ts # TypeScript declarations
NO CONTRIBUTING PLEASE!
This project is licensed under the MIT License - see the LICENSE file for details.
For support, watch youtube video