oghunt uses AI to remove the AI listings from today's Product Hunt launches.
This Turborepo includes the following packages/apps:
web: a Next.js app powering oghunt
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- Biome for code linting and formatting
To build all apps and packages, run the following command:
cd my-turborepo
pnpm build
This is what you need to get up and running
-
Create a ProductHunt account. Then, go to your API Dashboard. Afterwards, create an application. Set the redirect URI to
https://localhost:3000for local development purposes. Then, generate aDeveloper Token. -
Generate a Gemini API key:
- Go to Google AI Studio
- Create a new API key
- Copy the key for use in your environment variables
-
Create a
.envfile similar to .env.example with the following variables:CRON_SECRET: Set to whatever you'd like locallyDATABASE_URL: Set to"postgresql://dev:dev@localhost:5432/oghunt"GEMINI_API_KEY: Your Gemini API key from step 2PRODUCTHUNT_TOKEN: Your ProductHunt Developer Token from step 1
-
Start the database:
docker compose up -d
-
With the docker container running in the background, install dependencies and set up the database:
pnpm ipnpm db:push(only needed once to push these changes to the local DB)pnpm dev
-
Seed the database:
- Send a GET request to
http://localhost:3000/api/ingest-posts - Include the header:
Authorization: Bearer CRON_SECRETwhereCRON_SECRETmatches your.envvalue
- Send a GET request to
Please feel free to check out our architecture diagram in Excalidraw.
