All Projects → netlify-templates → roots-cms-example

netlify-templates / roots-cms-example

Licence: other
An example roots/netlify CMS integration

Programming Languages

CSS
56736 projects
Pug
443 projects
javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects
stylus
462 projects

Roots + netlify CMS

⚠️ Deprecation Notice 🏳

We are focusing our resources on building new templates that help you build a better web, because of that we're deprecating this template. We care about the community so we propose if anyone wants to maintain or take stewardship over the project please contact us at [email protected]. If you want to share anything with the team about this template, you can also fill out this form.

This is a simple example of how to integrate netlify CMS with a roots based site.

It's based on Brian Rinaldi's great Static Site Samples and meant as a simple example of how to hook netlify CMS up with a roots based site.

Setting up

Make sure to install the netlify-git-api before you start.

Then:

git clone https://github.com/netlify-templates/roots-cms-example.git
cd roots-cms-example
netlify-git-api users add
netlify-git-api serve

Open a separate terminal window and run:

npm install
roots watch

Using

Visit localhost:1111 to browser the site.

Visit localhost:1111/admin to use the CMS.

To run against the GitHub API in production, edit the production backend settings for admin/config.yml with the correct repository and branch.

Then make sure to set a CMS_ENV environment variable to production when running the production build.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].