Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

aidancornelius/voyager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voyager

A partial backend to an e-learning course system. Hacky at best.

Usage

Add this (or similar) junk to your routes...

resources :completions
get 'certificate', to: 'certificate#index'
get 'pdcertificate', to: 'certificate#generate'
resources :messages
resources :lesson_components
resources :replies do
 post 'star'
end
get '/course/:course_slug/modules', to: 'units#index'
get '/course/:course_slug/modules/:module_slug/:component_slug', to: 'units#lesson_component'
resources :lessons
resources :courses do
 get 'dashboard'
end

Installation

Add this line to your application's Gemfile:

gem 'voyager'

And then execute:

$ bundle

Or install it yourself as:

$ gem install voyager

Finally

Run

$ rails voyager:install:migrations

Check

routes.rb

License

The gem is available as open source under the terms of the MIT License.