Simple Rails and Contentful Application. This application is for Demo purposes.
Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.
- Install dependencies
bundle install- Create and Seed Database
bundle exec rake db:create db:migrate db:seed- Run Server
bundle exec rails sThe seed comes pre-loaded with a Read-Only Demo space. You can view the content here
You can create your own Custom Data by following these steps:
- Create an Account in Contentful or Log In
- Create a new Space with
ProductTemplate - In the rails app, create a new Contentful Configuration with (obtained from Contentful App):
- Your newly created Space ID -
Settings -> Space -> Space ID - Production Delivery API Access Token -
APIs -> API Keys -> Website -> Production - Product's Content Type ID -
Content Types -> Product -> JSON Preview -> "sys => id"(sysis the Metadata block of the Content Type)
- Your newly created Space ID -
- Then press
Showon your new Configuration to see it's contents
For a Tutorial on how to create your own Rails Application using Contentful, you can read here