Awesome
<!-- markdownlint-disable MD033 MD014 -->Coursemology
<a href="http://coursemology.org"><img src="https://raw.githubusercontent.com/Coursemology/coursemology.org/development/public/images/coursemology_logo_landscape_100.png" alt="Coursemology logo" title="Coursemology" align="right" /></a>
Coursemology is an open source gamified learning platform that enables educators to increase student engagement and make learning fun.
Setting up Coursemology
System Requirements
- Ruby (= 3.3.5)
- Ruby on Rails (= 7.2.1)
- PostgreSQL (>= 9.5)
- ImageMagick or GraphicsMagick (For MiniMagick - if PDF processing doesn't work for the import of scribing questions, download Ghostscript)
- Node.js (v18 LTS)
- Yarn
- Installed docker
- Redis
Coursemology uses Ruby on Rails. In addition, some front-end components use React.js. This guide written by the awesome people at GoRails should help you to get started on Ruby on Rails (however, be careful about the Rails version that you are going to install here. Please refer to the system requirements for the version of Rails you need to have for your system)
Getting Started
-
We use submodules in the git repo; use this command to update submodules:
$ git submodule update --init --recursive
-
Download bundler to install dependencies
$ gem install bundler:2.5.9
-
Install ruby dependencies
$ bundle config set --local without 'ci:production' $ bundle install
-
Install javascript dependencies
$ cd client && yarn; cd -
-
Create and seed the database
$ bundle exec rake db:setup
-
We are using Keycloak as our Identity and Access Management (IAM) solution. Before proceeding to the next step, please navigate to
./authentication
folder, follow the instruction provided over the README, and then ensure that the Docker for Coursemology Authentication is running and that you are able to access the Keycloak site as mentioned in the very last step of that instruction -
Initialize .env files for Frontend and Backend
$ cp env .env; cp client/env client/.env
You may need to add specific API keys (such as the GOOGLE_RECAPTCHA_SITE_KEY) to the .env files for testing specific features.
-
Open up 3 different terminals. On the terminal for Frontend in the
client
directory, runyarn build:development
on the terminal for authentication service in the
authentication
directory, if you have not yet started Keycloak, rundocker compose up
or
docker-compose up
and on the terminal for Backend, run
bundle exec rails s -p 3000
-
Access the App by visiting
http://localhost:8080
-
You're all set! Simply login with the default username and password:
Email:
test@example.org
Password:
Coursemology!
Configuration
Multi Tenancy
To make sure that multi tenancy works correctly for you, change the default host in config/application.rb
before deploying:
config.x.default_host = 'your_domain.com'
Opening Reminder Emails
Email reminders for items which are about to start are sent via a cronjob which should be run once an hour. See config/initializers/sidekiq.rb
and config/schedule.yml
for sample configuration which assumes that the Sidekiq and Sidekiq-Cron gems are used.
If you use a different job scheduler, edit those files so your favourite job scheduler invokes the ConsolidatedItemEmailJob
job once an hour.
Found Boogs?
Create an issue on the Github issue tracker or come talk to us over at our Slack channels.
Contributing
We welcome contributions to Coursemology! Check out the issue tracker and pick something you'll like to work on. Please read our Contributor's Guide for guidance on our conventions.
If you are a student from NUS Computing looking for an FYP project, do check with Prof Ben Leong.
License
Copyright (c) 2015-2023 Coursemology.org. This software is licensed under the MIT License.
Using Coursemology
You're more than welcome to use Coursemology for your own school or organization. If you need more help, join our Slack channel to reach our core developers.
We are actively running Coursemology and can provide free use of our infrastructure on a case by case basis. Please contact Prof Ben Leong if you would like to explore this option.
Acknowledgments
The Coursemology.org Project was made possible by a number of teaching development grants from the National University of Singapore over the years. This project is currently supported by the AI Centre for Educational Technologies.