Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/audio_ai_studio"

# NextAuth
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your-secret-key-here"

# Stripe
STRIPE_PUBLISHABLE_KEY="pk_test_..."
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."

# AI Services
OPENAI_API_KEY="sk-..."
ELEVENLABS_API_KEY="..."
ASSEMBLYAI_API_KEY="..."

# AWS S3 (for file storage)
AWS_ACCESS_KEY_ID="..."
AWS_SECRET_ACCESS_KEY="..."
AWS_REGION="us-east-1"
AWS_S3_BUCKET="audio-ai-studio"

# Redis (for caching and job queues)
REDIS_URL="redis://localhost:6379"

# Email
SMTP_HOST="smtp.gmail.com"
SMTP_PORT="587"
SMTP_USER="your-email@gmail.com"
SMTP_PASS="your-app-password"

# App Configuration
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_..."
1,357 changes: 271 additions & 1,086 deletions README.md

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
images: {
domains: ['localhost', 'avatars.githubusercontent.com'],
},
env: {
NEXTAUTH_URL: process.env.NEXTAUTH_URL || 'http://localhost:3000',
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
},
webpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
};
return config;
},
}

module.exports = nextConfig
99 changes: 99 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"name": "audio-ai-studio",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"db:push": "prisma db push",
"db:generate": "prisma generate",
"db:studio": "prisma studio",
"setup": "./scripts/setup.sh",
"type-check": "tsc --noEmit"
},
"dependencies": {
"next": "14.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.3.3",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"tailwindcss": "^3.3.6",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.32",
"@prisma/client": "^5.7.1",
"prisma": "^5.7.1",
"next-auth": "^4.24.5",
"@auth/prisma-adapter": "^1.0.12",
"bcryptjs": "^2.4.3",
"@types/bcryptjs": "^2.4.6",
"stripe": "^14.9.0",
"@stripe/stripe-js": "^2.2.2",
"stripe": "^14.9.0",
"zod": "^3.22.4",
"react-hook-form": "^7.48.2",
"@hookform/resolvers": "^3.3.2",
"lucide-react": "^0.294.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"tailwind-merge": "^2.2.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-button": "^1.0.4",
"@radix-ui/react-card": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-hover-card": "^1.0.7",
"@radix-ui/react-input": "^1.0.4",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slider": "^1.1.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"framer-motion": "^10.16.16",
"react-dropzone": "^14.2.3",
"react-audio-player": "^0.17.0",
"wavesurfer.js": "^7.4.0",
"react-wavesurfer": "^0.8.6",
"react-hotkeys-hook": "^4.4.1",
"react-use": "^17.4.2",
"axios": "^1.6.2",
"socket.io-client": "^4.7.4",
"socket.io": "^4.7.4",
"multer": "^1.4.5-lts.1",
"@types/multer": "^1.4.11",
"ffmpeg-static": "^5.2.0",
"fluent-ffmpeg": "^2.1.2",
"@types/fluent-ffmpeg": "^2.1.24",
"openai": "^4.20.1",
"elevenlabs": "^0.2.8",
"assemblyai": "^2.0.0",
"uuid": "^9.0.1",
"@types/uuid": "^9.0.7",
"date-fns": "^2.30.0",
"recharts": "^2.8.0",
"react-markdown": "^9.0.1",
"remark-gfm": "^4.0.0",
"react-syntax-highlighter": "^15.5.0",
"@types/react-syntax-highlighter": "^15.5.11"
},
"devDependencies": {
"eslint": "^8.56.0",
"eslint-config-next": "14.0.4",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0"
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Loading