# React Blogger

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

```js
// 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

- [Node.js](https://nodejs.org) > v6
- [aws-cli](https://aws.amazon.com/cli)

### Installation

```sh
$ npm i react-blogger --save-dev
```

### Example

See example in /example to see it in action

```sh
$ cd example
$ npm i
$ npm start
```

- An example github project that uses react blogger - https://github.com/robonaut/www.robonaut.be
- This project is continously deployed to s3 - http://www.robonaut.be

## Running the tests

```
$ npm t
```

## Deployment

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

```sh
$ cd example
$ make build
$ make deploy
```

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/robonaut/tags). 

## Authors

* **Ilja Strobbe** - *Initial work* - [Robonaut](https://github.com/robonaut)

See also the list of [contributors](https://github.com/robonaut/react-blogger/contributors) who participated in this project.

## License

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