Skip to content
A Simple Rails Application using Contentful and the Product Template
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
TUTORIAL.md
config.ru

README.md

Rails Product Demo

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.

Setup

  • Install dependencies
bundle install
  • Create and Seed Database
bundle exec rake db:create db:migrate db:seed
  • Run Server
bundle exec rails s

Viewing Data

The seed comes pre-loaded with a Read-Only Demo space. You can view the content here

Using Custom Data

You can create your own Custom Data by following these steps:

  • Create an Account in Contentful or Log In
  • Create a new Space with Product Template
  • 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" (sys is the Metadata block of the Content Type)
  • Then press Show on your new Configuration to see it's contents

Tutorial

For a Tutorial on how to create your own Rails Application using Contentful, you can read here

You can’t perform that action at this time.