/react-spa-news

React single page application demo project

Primary LanguageJavaScript

SPA News - React

React demo project. This project uses News API under the hood.

Demo: Click to see DEMO

SPA News

Getting Started

This project created for a Meetup talk about Server Side Rendering with React.

There is also a Server Side Rendered version of same project.

Installing

First clone project and install dependencies

$ mkdir react-news && cd react-news
$ git clone https://github.com/ilkeraltin/react-spa-news.git
$ npm install

Navigate to News API and grab your API key.

Find config.js in root folder and update API Key.

const config = {
  apikey: 'enter-your-api-key'
};

Run on local

$ npm run dev

Navigate to http://localhost:3001

Deployment

Deployment build

$ npm run build:prod

You can deploy this project to:

Built With