A modern, production-ready content platform built with Next.js and TailwindCSS. Your lens to trending topics in News, Finance, Technology, Education, Sports, Lifestyle, Jobs, and Scholarships.
git clone https://github.com/TrendLenX/TrendLensX.git
cd TrendLensX
npm install
cp .env.example .env.local
Fill in your environment variables (see .env.example for details).
npm run dev
Open http://localhost:3000 in your browser.
NEXT_PUBLIC_SITE_URL: Your production URLNEXT_PUBLIC_GA_MEASUREMENT_ID: Google Analytics measurement IDMAILCHIMP_API_KEY: For newsletter integrationNEXTAUTH_SECRET: Secret for NextAuth.jsNEXTAUTH_URL: Base URL for authenticationPosts are written in MDX format. See AUTHOR_GUIDE.md for detailed instructions on creating and publishing content.
Key steps:
.mdx file in /content/posts/Access /admin/users to manage users and content (requires authentication).
TrendLensX/
├── content/
│ └── posts/ # MDX blog posts
├── public/
│ ├── images/ # Static assets
│ └── robots.txt # SEO file
├── src/
│ ├── components/ # Reusable React components
│ │ ├── Ads/ # Advertisement components
│ │ ├── Cards/ # Post and author cards
│ │ ├── Comments/ # Comment system
│ │ ├── Layout/ # Header, footer, layout
│ │ ├── Sections/ # Page sections (Hero, Newsletter)
│ │ ├── SEO/ # SEO meta components
│ │ └── Social/ # Social sharing buttons
│ ├── data/ # Static data (authors, mock data)
│ ├── lib/ # Utility functions and constants
│ ├── pages/ # Next.js pages and API routes
│ │ ├── api/ # API endpoints
│ │ ├── auth/ # Authentication pages
│ │ ├── admin/ # Admin panel
│ │ ├── author/ # Author profile pages
│ │ ├── category/ # Category pages
│ │ └── post/ # Individual post pages
│ ├── styles/ # Global CSS
│ └── types/ # TypeScript type definitions
├── .env.example # Environment variables template
├── next.config.js # Next.js configuration
├── next-sitemap.config.js # Sitemap generation
├── tailwind.config.js # TailwindCSS configuration
├── tsconfig.json # TypeScript configuration
└── vercel.json # Vercel deployment config
npm run build
npm run start
npm run dev: Start development servernpm run build: Build for productionnpm run start: Start production servernpm run lint: Run ESLint for code qualityWe welcome contributions! Please follow these steps:
git checkout -b feature/amazing-feature)npm run lint)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)For content contributions, see AUTHOR_GUIDE.md.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by the TrendLensX Team