My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
QuickStart a React App using a Headless CMS API

QuickStart a React App using a Headless CMS API

Carson Gibbons's photo
Carson Gibbons
·Aug 2, 2018

One of the core benefits of offloading key development services onto best-in-class APIs is getting your project up and running quickly. Instead of building out a custom payment gateway; developers would rather plug into Stripe and start transacting immediately. Similarly, the days of building out your own search application are over; developers are simply plugging into Algolia to make their data searchable in a fraction of the time.

The same shifts are occurring in content management. Instead of installing and building out a legacy monolithic content manage system, developers are gravitating to the “headless CMS” to allow them to build apps using their favorite frameworks and technologies, while giving their marketers and content managers a web-based Dashboard to create and manage content with simple, scalable content modeling tools. Content and code remain decoupled, allowing each member of a cross-functional team to work with only the tools they need to get their job done.

Cosmic JS offers a headless CMS that enables content managers and developers to work better together. By providing an intuitive Admin Dashboard, powerful APIs, and flexible user roles, applications are built faster, more light-weight, and your whole team ends up saving time in the process.

TL;DR:

  1. React Starter
  2. Developer Docs
  3. React Knowledge Base

QuickStart a React App using a Headless CMS API

Cosmic JS is an example of a robust headless CMS and API that's promoting collaboration on cross-functional teams to build apps faster. Get started building Cosmic-powered apps in seconds 🚀 We have Node.js, React, Vue, Gatsby and Serverless Starters to help you get your project started quickly.

🛠️ Installation

Install via the Cosmic CLI:

ice_screenshot_20180802-125749.png

I set up an example Bucket for this blog:

3a070c50-901a-11e8-aa7a-ef2777ce2a03-ezgif-2-17aaf8bd20.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 a QuickStart React Application that can be managed entirely from your Cosmic JS Bucket Dashboard and Command Line Terminal tool of choice.

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. 🔥

If you have any comments or questions about building React apps with Cosmic JS, reach out to us on Twitter and join the conversation on Slack .