Scan a subreddit for all posts with a keyword, and determine the sentiment (positive, negative or neutral)
- Pulls the top posts from the week
- Uses OpenAI API
-
Install packages
npm i
-
Add OpenAI API key to new
.env
file (sample included -.env.sample
) -
To run both nextjs and the express server (dev mode)
npm run dev
-
Build and deploy via
npm run build
/npm start
- Extracted post data/settings:
/utils/extractPosts.js
- AI prompt/model config:
/utils/analyzePosts.js
- Local server config:
/server/index.js