Skip to content

abhisheksharmacodes/trendwise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrendWise

An AI-powered blogging platform for discovering, reading, and managing trending articles with seamless user experience and robust SEO.


🚀 Features

  • 🤖 AI-Generated Content: Automatically creates and publishes trending articles using Google Generative AI.
  • 📰 Dynamic Article Feed: Search and explore the latest trending topics.
  • 💬 Commenting System: Engage with articles through a built-in comment section.
  • 🔒 Secure Authentication: User sign up, login, and admin controls with NextAuth and JWT.
  • 📈 SEO Optimized: Server-side rendering and meta tags for high discoverability.
  • 🛡️ Robust API: RESTful backend with rate limiting, security headers, and admin endpoints.
  • 🐳 Easy Deployment: Docker and Docker Compose support for local and cloud deployment.

🛠️ Tech Stack

  • Frontend: Next.js, React, NextAuth.js, Tailwind CSS
  • Backend: Node.js, Express, Mongoose
  • Database: MongoDB
  • Authentication: NextAuth.js, JWT
  • AI Integration: Google Generative AI
  • DevOps: Docker, Docker Compose

🏁 How to Run

1. Clone & Install

git clone https://github.com/abhisheksharmacodes/trendwise.git
cd trendwise

2. Configure Environment

Backend (back/.env):

MONGODB_URI=mongodb://localhost:27017/trendwise
JWT_SECRET=your_jwt_secret
FRONTEND_URL=http://localhost:3000
GOOGLE_API_KEY=your_google_generative_ai_key

Frontend (front/.env.local):

NEXT_PUBLIC_BACKEND_URL=http://localhost:5000
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_nextauth_secret

3. Start with Docker Compose

docker-compose up --build

4. (Optional) Seed the Database

docker-compose exec backend node scripts/seedData.js

📦 Deployment

  • Supports Docker and cloud platforms (e.g., Vercel, Render). Set all required environment variables in your deployment environment.
  • For scheduled article generation, configure Vercel Cron or trigger /api/cron/generate-article.

Built with Next.js, Express, and MongoDB.

About

Built TrendWise, an SEO-optimized, AI-powered blogging platform that auto-generates and publishes trending articles. Using a modern Next.js/Node.js/MongoDB stack, it enables users to explore and comment on AI-generated content and includes admin controls and secure JWT authentication. It is fully containerized with Docker for easy deployment.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors