Codementor Events

Deploy a Simple React Blog in 3 Steps

Published Nov 08, 2017
Deploy a Simple React Blog in 3 Steps

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

0*YVO1wuCN5vALelZT.jpg

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.

Screen Shot 2017-11-08 at 8.57.09 AM.png

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 Demo
Simple React Blog Codebase on GitHub

1. Create a New Bucket

0*difPvb6tMBVsvd3m.png

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

0*xOChN9l4yGu0pDHQ.png
0*pjfNcsgMOCQ8eb_8.png
Cosmic JS gives you the ability to filter between programming languages such as Node.js, Vue.js, React, AngularJS and more.
0*miIl1AN4bhJgZQxU.png

3. Deploy to Web

0*kqJIjnXhSAXxCHom.png

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

0*LLh7tySxplUzIujg.png

Deploy Branch Confirmation Modal

0*N2t05pMA2F8pjhWP.png

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.

Discover and read more posts from Carson Gibbons
get started
post commentsBe the first to share your opinion
Show more replies