• Stars
    star
    245
  • Rank 165,304 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Server Side Rendering for React demo project

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
$ cd react-ssr-news
$ 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