项目作者: ilkeraltin

项目描述 :
Server Side Rendering for React demo project
高级语言: JavaScript
项目地址: git://github.com/ilkeraltin/react-ssr-news.git
创建时间: 2019-03-11T20:27:55Z
项目社区:https://github.com/ilkeraltin/react-ssr-news

开源协议:MIT License

下载


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

  1. $ mkdir react-news && cd react-news
  2. $ git clone https://github.com/ilkeraltin/react-ssr-news.git
  3. $ cd react-ssr-news
  4. $ npm install

Navigate to News API and grab your API key.

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

  1. const config = {
  2. apikey: 'enter-your-api-key'
  3. };

Run on local

  1. $ npm run dev

Navigate to http://localhost:3000

Deployment

Deployment build

  1. $ npm run build:prod

You can deploy this project to:

Built With