react-blogger

0.1.3 • Public • Published

React Blogger

React Component that renders a blog based upon json input complete with pages, content and routing.

// React
import React from 'react';
import ReactDom from 'react-dom';
 
// Blogger
import Blogger from 'react-blogger';
import blog from '../../data/blog.json';
 
// Render
ReactDom.render(
    <Blogger config={config} blog={blog} />,
    document.getElementById('app'),
);

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Installation

$ npm i react-blogger --save-dev

Example

See example in /example to see it in action

cd example
$ npm i
$ npm start

Running the tests

$ npm t

Deployment

See example Makefile on how to build this and deploy it on S3 (using aws-cli)

cd example
$ make build
$ make deploy

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Ilja Strobbe - Initial work - Robonaut

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Readme

Keywords

none

Package Sidebar

Install

npm i react-blogger

Weekly Downloads

0

Version

0.1.3

License

UNLICENSED

Last publish

Collaborators

  • ilja