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

https://github.com/kevinadhiguna/rga-blog

A simple personal blog created using ReactJS, GraphQL with Apollo as GraphQL client and GraphCMS as the GraphQL API provider.
https://github.com/kevinadhiguna/rga-blog

apollo-client blog graphcms graphql react

Last synced: 3 months ago
JSON representation

A simple personal blog created using ReactJS, GraphQL with Apollo as GraphQL client and GraphCMS as the GraphQL API provider.

Awesome Lists containing this project

README

          




React-GraphCMS-Apollo Blog


A simple personal blog created using ReactJS, GraphQL with Apollo as GraphQL client and GraphCMS as the GraphQL API provider.



Report Bug
ยท
Request a Feature



ReactJS
JavaScript
GraphQL
Apollo GraphQL client


## ๐Ÿ“บ Demo

This app will show you the `title` you created in GraphCMS :




Other than `title`, the app will render the `post` that you created in GraphCMS :




For live preview, please visit :



## ๐Ÿ“– How to Run :

In the project directory, you can run these commands :

1) Create an application configuration file in JSON (`appConfig.json`), by copying `appConfig.dev.json` :
```bash
cp appConfig.dev.json appConfig.json
```

2) Please fill the `appConfig.json` with your GraphCMS URI. For example :
```diff
{
- "GRAPHCMS_URI": ""
+ "GRAPHCMS_URI": "https://api-ap-northeast-1.graphcms.com/v2/dfe3e5s3r8j73qw3ds14276c/master"
}
```

Unlike `appConfig.dev.json` that will handle application configuration for development environment, `appConfig.json` will not be tracked by Git (also not being uploaded to GitHub, GitLab, and other Git hosting services).

So, this does not violate Config in The Twelve-Factor App (a methodology to build SaaS). For more, please have a look at https://12factor.net/config.

3) Install Dependencies :
```bash
yarn
```

4) Run this app on your browser :
```bash
yarn start
```

Runs the app in the development mode.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.


![Hello !](https://api.visitorbadge.io/api/VisitorHit?user=kevinadhiguna&repo=RGA-blog&label=thanks%20for%20dropping%20in%20!&labelColor=%23000000&countColor=%23FFFFFF)