This is a website that uses AI to check if news is true or false. It also shows live news and lets people report local news.
Follow these 5 easy steps to get the website running:
Make sure you have Node.js installed on your computer. If you don't, download it from nodejs.org.
Open the folder where you downloaded this code. Inside that folder, open your Terminal or PowerShell.
This will download all the "brain" parts the website needs.
npm installThe website needs a "Key" to talk to the AI.
- Look for a file named
.env.example. - Rename it to just
.env(delete the.examplepart). - Open that
.envfile in Notepad. - Go to Google AI Studio and click "Create API Key".
- Copy that long code and paste it after
GEMINI_API_KEY=in your file. - Save and close the file.
Go back to your terminal and type:
npm startOnce you see "Server running", open your browser (Chrome/Edge) and go to: 👉 http://localhost:3000
- Click on the AI Verify tab in the menu.
- Type in a news headline (Example: "Man lands on Mars today").
- Click the Analyze Now button.
- Watch the AI calculate the "Truth Score"!
- "Connection Failed": Make sure you saved your API Key in the
.envfile correctly. - "Command not found": Make sure you installed Node.js in Step 1.
- "Database Error": This happens if you haven't set up MySQL, but the AI Verification will still work fine!
Enjoy your AI News Analyzer! 🕶️🧠