Codementor Events

Install and Deploy a React Book App in 3 Steps

Published Nov 16, 2018
Install and Deploy a React Book App in 3 Steps

Cosmic JS makes it easy to manage content for your React applications. Cosmic enables developers to build modern, content-powered applications without the hassle of maintaining installed CMS infrastructure. The Cosmic Dashboard gives the content creator an unmatched, delightful experience to create content.

In this tutorial I'll demonstrate using the Cosmic JS CLI to install a new Cosmic-powered React app recently debuted by the Cosmic JS Community. The Book App was built using React and Redux with content powered by Cosmic JS. Content creators can manage books including images, titles, content, authors, and book genre/category. Search functionality is included by typing author name or book title. Sort by book categories and publish a book card from the custom admin dashboard.

You can install, deploy and manage content for every section of this React Book App, all from your Cosmic JS Bucket Dashboard. Let's get started. šŸ”„

ezgif-4-594bc8d8d1ca.gif

TL;DR:

React Book App
React Book App Demo
React Book App Codebase
Browse Cosmic-powered React Apps

237c3030-e788-11e8-a0f7-f393606b1cf1-react-book-app-4.png

Install and Deploy a React Book App in 3 Steps

Step 1: Create an Account

Sign up for Cosmic JS + Install the Cosmic CLI + Create a New Bucket

3f50c8f0-e929-11e8-aefa-9168f0277b2b-ice_screenshot_20181115-165305.png

Step 2: Installation šŸ› ļø

Install via the Cosmic CLI:
4600dcc0-e92a-11e8-b035-9f1da907e3e2-ice_screenshot_20181115-170018.png

a1a503f0-e928-11e8-b035-9f1da907e3e2-React-Book-App.png

Cosmic JS provides options to Install via the Bucket Dashboard or via the Cosmic CLI. I set up my example using the Cosmic JS CLI:
ezgif-4-5b3d699aa7bb.gif

Run cosmic -h for a list of all commands. Run cosmic [command] -h for details on options for a specific command. You're now up and running with your React Book App that can be managed entirely from your Cosmic JS Bucket Dashboard and Command Line Terminal tool of choice.

Step 3: Deploy šŸš€

65a7b220-e929-11e8-b035-9f1da907e3e2-Web-Hosting.png

Cosmic JS provides deployment options to:

āœ… Cosmic JS App Server (testing purposes only)
āœ… Deploy to Zeit
āœ… Deploy to Heroku
āœ… Deploy to Netlify

By selecting the code repository I want to deploy and selecting "Deploy to Cosmic", I can deploy my React Book App to the Cosmic JS App Server to test my live edits I'll make via the Cosmic JS Dashboard.

Conclusion

When ditching the installed content management system and going API-first isn't quick enough, check out the Starter Apps from Cosmic JS to get a project up and running in seconds. šŸ”„

Learn more about contributing your own project to the Cosmic JS Community. If you have any comments or questions about building apps with Cosmic JS, reach out to us on Twitter and join the conversation on Slack.

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