https://github.com/muhiris/trunews
https://github.com/muhiris/trunews
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/muhiris/trunews
- Owner: muhiris
- Created: 2024-05-18T07:45:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T11:38:13.000Z (about 2 years ago)
- Last Synced: 2025-01-31T09:16:40.418Z (over 1 year ago)
- Language: JavaScript
- Size: 2.43 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TruNews - A News Aggregator with AI Fact-Checking
TruNews is a project that aims to showcase multiple news articles and utilize AI to detect contradictory news. Users can upvote, downvote, and publish news articles.
## Getting Started - Run frontend, backend, and AI component concurrently
### Prerequisites
Ensure you have the following installed on your system:
- Node.js and npm
- Python (preferably Python 3.x)
- Necessary dependencies for each component
### To run the frontend, follow these steps:
```bash
cd frontend
npm install
npm run dev
```
### To set up the backend, follow these steps:
```bash
cd backend
npm install
npm start
```
### For the AI component, follow these steps:
> For Linux, instead of `setup.bat` run `bash commands.sh`
```bash
cd ai
setup.bat
python main.py
```
### Common Issues
- **Dependencies**: Make sure you have all the necessary dependencies installed. If you encounter any issues, check the `package.json` for frontend and backend, and `requirements.txt` for the AI component.
- **Port Conflicts**: Ensure that the ports used by the frontend (usually 5173), backend (usually 4000), and AI component are not being used by other applications.