Skip to content

Hacksore/oghunt

Repository files navigation

oghunt

oghunt uses AI to remove the AI listings from today's Product Hunt launches.

image

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

  • web: a Next.js app powering oghunt

Utilities

This Turborepo has some additional tools already setup for you:

  • TypeScript for static type checking
  • Biome for code linting and formatting

Build

To build all apps and packages, run the following command:

cd my-turborepo
pnpm build

Development

This is what you need to get up and running

  1. Create a ProductHunt account. Then, go to your API Dashboard. Afterwards, create an application. Set the redirect URI to https://localhost:3000 for local development purposes. Then, generate a Developer Token.

  2. Generate a Gemini API key:

    • Go to Google AI Studio
    • Create a new API key
    • Copy the key for use in your environment variables
  3. Create a .env file similar to .env.example with the following variables:

    • CRON_SECRET: Set to whatever you'd like locally
    • DATABASE_URL: Set to "postgresql://dev:dev@localhost:5432/oghunt"
    • GEMINI_API_KEY: Your Gemini API key from step 2
    • PRODUCTHUNT_TOKEN: Your ProductHunt Developer Token from step 1
  4. Start the database:

docker compose up -d
  1. With the docker container running in the background, install dependencies and set up the database:

    • pnpm i
    • pnpm db:push (only needed once to push these changes to the local DB)
    • pnpm dev
  2. Seed the database:

    • Send a GET request to http://localhost:3000/api/ingest-posts
    • Include the header: Authorization: Bearer CRON_SECRET where CRON_SECRET matches your .env value

Please feel free to check out our architecture diagram in Excalidraw.

Team

About

oghunt uses AI to remove the AI listings from Product Hunt launches

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 16

Languages