https://github.com/ksanjeeb/newsai
AI News Summarizer utilizing Langchain and NewsAPI Powered by Groq LLM
https://github.com/ksanjeeb/newsai
ai langchain-js llama3 llm meta nextjs14
Last synced: 22 days ago
JSON representation
AI News Summarizer utilizing Langchain and NewsAPI Powered by Groq LLM
- Host: GitHub
- URL: https://github.com/ksanjeeb/newsai
- Owner: ksanjeeb
- License: mit
- Created: 2024-07-18T17:29:49.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-22T08:53:01.000Z (9 months ago)
- Last Synced: 2025-02-12T10:27:29.520Z (2 months ago)
- Topics: ai, langchain-js, llama3, llm, meta, nextjs14
- Language: TypeScript
- Homepage: https://hgnews.vercel.app/
- Size: 5.94 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NEWSAI (React + Express + NewsAPI + Groq + Langchain)
## Overview
This project consists of a backend server and a frontend UI application. The backend runs on Node.js and Express, while the frontend is built using React.## Prerequisites
- Node.js installed on your machine
- npm (Node Package Manager)## Setup Instructions
### Backend Setup
1. **Navigate to the Server Directory:**
```sh
cd /Server
```2. **Install Dependencies:**
```sh
npm install
```3. **Configure Environment Variables:**
- Go to the `ENV-EXAMPLE.txt` file.
- Add your secret keys and rename the file to `.env`.4. **Install Nodemon Globally (Optional but Recommended):**
```sh
npm install -g nodemon
```5. **Start the Server:**
```sh
npm run start
```The server will be up and running at `http://localhost:3000`.
### Frontend Setup
1. **Navigate to the UI Directory:**
```sh
cd /UI
```2. **Install Dependencies:**
```sh
npm install
```3. **Start the UI Application:**
```sh
npm run start
```4. **Verify Backend URL Configuration:**
- Open the `config.ts` file we can also do the same in `.env` as well
- Ensure that the backend URL is correctly configured to point to `http://localhost:3000`.### Running the Application
- The backend server will be accessible at `http://localhost:3000`.
- The frontend application will typically run on `http://localhost:5173` or another port if specified in your configuration.## Troubleshooting
- If you encounter any issues with dependencies, try deleting the `node_modules` folder and the `package-lock.json` file, then run `npm install` again.
- Ensure that your `.env` file is correctly configured with all necessary environment variables.This README provides a clear and structured guide for setting up and running the project, ensuring that developers can quickly get started with the backend and frontend components.