Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gauravtiwari/graphql-apollo-blog

An apollo version of the web blog built on relay and GraphQL
https://github.com/gauravtiwari/graphql-apollo-blog

Last synced: 18 days ago
JSON representation

An apollo version of the web blog built on relay and GraphQL

Awesome Lists containing this project

README

        

# An apollo version of the web blog built on relay and GraphQL

Simple setup to use new Graphql client: *Apollo* (https://github.com/apollostack/apollo-client) with Rails asset pipeline using `webpack` with a few helpers for dynamic react rendering. The relay version is available here [https://github.com/gauravtiwari/relay-rails-blog](https://github.com/gauravtiwari/relay-rails-blog)

Check out the `app/assets/javascripts` folder

```bash
components: Contains all react components splitted in directories (same namespace as rails views)
components.js: components manifest
```
## Features
* React with ES6 syntax
* Graph Server built on Rails using: `graphql-ruby` gem
* Graphql client: Apollo (https://github.com/apollostack/apollo-client)
* Babel transpiler
* NPM support

## Running
```bash
git clone [email protected]:gauravtiwari/apollo_on_rails.git
cd apollo_on_rails
bundle install
npm install
chmod 777 start
./start
# Or Alternatively
bundle exec foreman start
```