Codementor Events

Deploy a React Native Cross-Platform Blog in 3 Steps

Published Nov 07, 2017Last updated May 05, 2018
Deploy a React Native Cross-Platform Blog in 3 Steps

In this blog I will demonstrate deploying a Cross-Platform Blog in 3 steps. This app is three apps in one: Web, iOS and Android app, all with content powered by Cosmic JS. Go to the GitHub repo to see how the iOS and Android app share the same React Native codebase, cutting dev time in half. The web version runs on a light Node.js server. Install and manage your blog content from your Cosmic JS Bucket Dashboard. Simple. 😎

TL;DR:

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 Native Cross-Platform Blog in 3 easy steps. 🚀

  1. Native iOS and Android apps share the same React Native codebase. Learn once, write anywhere.
  2. Web is fully responsive down to mobile w/ Bootstrap frontend.
  3. Images are easily manipulated for different device / browser requirements via the Cosmic JS provided Imgix integration.

We’ll be using Cosmic JS to install our example app, deploy and make content updates moving forward. If you haven’t already, get started by Signing Up for Cosmic JS. Helpful resources are provided below to streamline your development operations.
home-page.gif

React Native Cross-Platform Blog Page

Cross-Platform Blog Codebase on GitHub

1. Create a New Bucket

0*GD6sUjU-Jui4Lq5K.png

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

2. Install the React Native Cross-Platform Blog

0*FdEqoqzAStIMD5bZ.png
0*eSwP2bcwgjPJwgD6.png
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

0*7wns2MxMN-wlstNv.png
0*75D2GVjsfvUfIhxp.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.

Now that your app is deployed to the Cosmic JS App Server, you’re free to completely manage your Cross-Platform 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