A modern file sharing platform built with Next.js, featuring direct Google Drive integration, AI-powered descriptions, and real-time uploads.
- 🚀 Direct Google Drive Upload - Upload files directly to Google Drive from Next.js (no Google Apps Script needed)
- 📊 Real-time Progress - See upload progress with live feedback
- 🤖 AI Descriptions - Generate descriptions using AI
- 🔒 Secure Authentication - NextAuth with Google OAuth
- 📝 Content Validation - Automatic blocking of inappropriate content
- 💬 Comments & Ratings - Users can comment and rate files
- 📈 Analytics - Track views, downloads, and file statistics
- 🎨 Modern UI - Clean, responsive design with dark mode
- Node.js 18+
- MongoDB database
- Google Cloud Console project with Drive API enabled
- Clone the repository:
git clone https://github.com/nitheeshmk41/mxnotes.git
cd mxshare- Install dependencies:
npm install-
Set up environment variables (see
.envfile):- MongoDB connection
- Google OAuth credentials
- Google Drive API credentials (see
GOOGLE_DRIVE_SETUP.md) - OpenRouter API key for AI features
-
Configure Google Drive authentication:
- Follow instructions in
GOOGLE_DRIVE_SETUP.md - Option 1: Service Account (recommended)
- Option 2: OAuth refresh token (use
node scripts/generate-refresh-token.js)
- Follow instructions in
-
Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.