Deploy a Simple React Blog in 3 Steps

Written by carsoncgibbons | Published 2017/10/12
Tech Story Tags: nodejs | react | graphql | web-development | javascript

TLDRvia the TL;DR App

In this blog I will demonstrate deploying a Simple React Blog in 3 steps. This blog is built using React, Next.js and GraphQL to create a Universal React website. It connects to the Cosmic JS API via GraphQL. Install and manage your blog content from your Cosmic JS Bucket Dashboard. Simple. 😎 You can refer to the original tutorial below if you’d like to see how the app was built from scratch, or keep reading to simply deploy the React blog in 3 easy steps.

How to Build a Simple Blog Using React and GraphQL | Cosmic JS_Cosmic JS is a cloud-hosted content platform that offers a flexible and intuitive CMS API. Build websites and…_cosmicjs.com

I’ll be using Cosmic JS for this example blog. Cosmic JS is an API-first CMS that makes managing and building websites and applications faster and more intuitive. By decoupling content from code, Cosmic JS empowers developer flexibility while ensuring content editors can plan and deploy content as it best suits them. Cosmic JS lets developers use the tools they love, like Node.js, GitHub, Docker and more. We’ll be using Cosmic JS to install our example app, deploy and make content updates moving forward from the cloud-based Content Management Platform.

If you haven’t already, get started by Signing Up for Cosmic JS. Helpful resources are provided below to streamline your development operations.

Simple React Blog | Cosmic JS App Demo_Cosmic JS is a cloud-hosted content platform that offers a flexible and intuitive CMS API. Build websites and…_cosmicjs.com

cosmicjs/simple-react-blog_simple-react-blog - A simple blog website powered by Next.js and the Cosmic JS GraphQL API_github.com

1. Create a New Bucket

Your bucket’s name is the name of your website, project, client or web application that you are building.

2. Install the Simple React Blog

Cosmic JS gives you the ability to filter between programming languages such as Node.js, Vue.js, React, AngularJS and more.

3. Deploy to Web

I clicked “Deploy to Web”. I can then edit Objects while my web application is deploying. You will receive an email confirming the deployment of your web application. If you encounter any issues during deployment, you may be routed to the Cosmic JS Troubleshooting Page.

Confirm Deploy Location and Branch

Deploy Branch Confirmation Modal

Now that your app is deployed to the Cosmic JS App Server, you’re free to completely manage your Simple React Blog and all of its content from one place.

Cosmic JS is an API-first cloud-based content management platform that makes it easy to manage applications and content. If you have questions about the Cosmic JS API, please reach out to the founders on Twitter or Slack.

Additional Reading


Written by carsoncgibbons | Director of Sales @ Preciate Formerly Co-Founder @ Cosmic JS Y Combinator W19 Batch
Published by HackerNoon on 2017/10/12