This is an example of a simple blog app built using create-react-app. It's powered by GraphQL connected to the Cosmic JS API for easy content management.
- Go to Cosmic JS and create a new Bucket.
- Import the
bucket.json
in this repo to your Bucket located in Your Bucket > Import / Export - Download the app:
git clone https://github.com/cosmicjs/react-graphql-blog
cd react-graphql-blog
yarn
Connect to your Cosmic JS Bucket using the environment variable COSMIC_BUCKET
or edit the config.js
file.
COSMIC_BUCKET=your-bucket-slug yarn start
COSMIC_BUCKET=your-bucket-slug yarn build