Skip to content

xandermcleod/terrible-hackathon

Repository files navigation

Terrible Hackathon Project

Things News

ChatGPT generated news article parodies of Stuff New Zealand articles. Uses cron jobs to check Stuff RSS and then generate a fake parody article based off the title. ChatGPT will generate a fake thumbnail then we upload it to an imagebb storage bucket, then the entire article to our Supabase PostgreSQL database. Front-end then requests our api endpoint for the articles and then displays them with react and tailwind.

How to run

  1. npm i to install dependencies
  2. add .env with the keys:
    • OPENAI_API_KEY
    • DATABASE_URI
    • IMGBB_KEY
  3. npm prisma generate to generate the prisma client
  4. npx run dev to start the server