/react-ssr-news

Server Side Rendering for React demo project

Primary LanguageJavaScript

SSR News - React

React Server Side Rendering demo project. This project uses News API under the hood.

Demo: Click to see DEMO

SSR News

Getting Started

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

There is also a SPA version of same project.

Installing

First clone project and install dependencies

$ mkdir react-news && cd react-news
$ git clone https://github.com/ilkeraltin/react-ssr-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:3000

Deployment

Deployment build

$ npm run build:prod

You can deploy this project to:

Built With