Skip to content

Repository files navigation

image image AWS: http://alb-for-ainews-746322662.eu-north-1.elb.amazonaws.com/ TECH STACK Core Technologies: - Frontend and Backend Framework: Next.js 15.3.5 - Database: Prisma ORM with Postgres - AI/ML: OpenAI's GPT-4.1-mini via @openai/agents (can used other LLMs using LiteLLM)

Key Dependencies:

  • @openai/agents: For AI-powered content curation
  • @prisma/client: Database ORM
  • next: React framework
  • react/react-dom: UI library
  • tailwindcss: Utility-first CSS framework

PROJECT STRUCTURE src/ ├── app/ # Next.js app directory │ ├── api/ # API routes │ ├── page.tsx # Main application page │ └── globals.css # Global styles ├── components/ # Reusable React components └── lib/ # Utility functions ├── agent.ts # AI news curation logic └── prisma.ts # Database client

DATABASE SCHEMA

  • Post: Curated news content
  • Category: News categories
  • Source: News sources with URLs

SETUP INSTRUCTIONS Prerequisites:

  • Node.js (v18+)
  • npm (v9+)
  • OpenAI API key

Troubleshooting If the AI returns invalid JSON, check the agent's system prompt Database issues can be resolved by resetting the database: npx prisma migrate reset

Installation:

  1. Clone the repository
  2. Run: npm install
  3. Create .env file with: DATABASE_URL="file:./dev.db" OPENAI_API_KEY="your-openai-api-key"
  4. Initialize DB: npx prisma db push
  5. Seed DB: npx prisma db seed
  6. Start dev server: npm run dev

About

The AI News Curator is a web application that aggregates and synthesizes news from multiple sources into cohesive, summarized stories. It uses AI to process and combine news articles from different sources into single, comprehensive news pieces.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages