A polished React (Create React App) News app with categories, search, dark mode, and pagination.
- Node.js 18+ recommended
- A NewsAPI key
This app uses a small Node backend proxy so it works with the NewsAPI Developer plan (which blocks browser requests except from localhost).
- Install dependencies:
npm ciRuns backend (:5000) + frontend (:3000):
npm run devOpen http://localhost:3000.
npm run buildset NODE_ENV=production
node server/index.jsOpen http://localhost:5000.
Deploy this as a Node web app (Render/Railway/Fly/etc):
- Build command:
npm ci && npm run build - Start command:
node server/index.js - Env (optional):
NEWS_API_KEYto override the embedded key