Skip to content

kontent-ai/sample-app-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This sample app relies on the Dancing Goat project, which is no longer available for creation in Kontent.ai.

If you still wish to use this project, you can import the Dancing Goat project using the Data Ops tool by following the instructions provided in our Dancing Goat repository.

Kontent.ai Rails Sample Application

Kontent.ai Discord Stack Overflow

This basic Rails application demonstrates how to create a Rails application using the Kontent.ai Ruby SDK and a sample project.

See Build your first Ruby on Rails app for a detailed walkthrough of how the sample application was developed.

Screenshot

Install & Run

  • Clone the repository
  • Run bundle install
  • You can change the source Kontent.ai project to your own project to be able to change the content. If you don't have your own Sample Project, any admin of a Kontent.ai subscription can generate one.
    • If you want to connect to custom project ID, Open the app/controllers/application_controller.rb file and set your project ID on this line:
      PROJECT_ID = '<your-project-ID>'.freeze
  • Run rails server. Your application will be accessible at localhost:3000

Features

Languages

  • Ruby 70.1%
  • HTML 23.1%
  • JavaScript 4.2%
  • CSS 2.6%