TrendLensX

License: MIT Next.js TypeScript

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.

Table of Contents

Features

Content Management

User Experience

Administration

Monetization & Marketing

Technical Features

Installation

Prerequisites

Setup

  1. Clone the repository
    git clone https://github.com/TrendLenX/TrendLensX.git
    cd TrendLensX
    
  2. Install dependencies
    npm install
    
  3. Environment Configuration
    cp .env.example .env.local
    

    Fill in your environment variables (see .env.example for details).

  4. Run the development server
    npm run dev
    

    Open http://localhost:3000 in your browser.

Environment Variables

Usage

For Readers

For Content Authors

Posts are written in MDX format. See AUTHOR_GUIDE.md for detailed instructions on creating and publishing content.

Key steps:

  1. Create a new .mdx file in /content/posts/
  2. Add frontmatter with metadata (title, author, category, etc.)
  3. Write your content in Markdown
  4. Commit and push to deploy

Admin Panel

Access /admin/users to manage users and content (requires authentication).

Project Structure

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

Deployment

  1. Push your code to GitHub
  2. Import the project in Vercel
  3. Configure environment variables
  4. Deploy automatically

Manual Deployment

npm run build
npm run start

Scripts

Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests and linting (npm run lint)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

For content contributions, see AUTHOR_GUIDE.md.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ❤️ by the TrendLensX Team