Skip to content

Shivamcoli/NewsApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThunderNews

A polished React (Create React App) News app with categories, search, dark mode, and pagination.

Prerequisites

  • Node.js 18+ recommended
  • A NewsAPI key

Setup

This app uses a small Node backend proxy so it works with the NewsAPI Developer plan (which blocks browser requests except from localhost).

  1. Install dependencies:
npm ci

Run (development)

Runs backend (:5000) + frontend (:3000):

npm run dev

Open http://localhost:3000.

Build (production)

npm run build

Run (production)

set NODE_ENV=production
node server/index.js

Open http://localhost:5000.

Deploy (static hosting)

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_KEY to override the embedded key

Releases

Packages

Contributors

Languages