Canvas as a frontend for polyglot
Alyssa Rosenzweig 05785edceb Literal body | 6 年之前 | |
---|---|---|
images | 7 年之前 | |
jsx | 7 年之前 | |
messages | 7 年之前 | |
stylesheets | 7 年之前 | |
views | 6 年之前 | |
.gitignore | 7 年之前 | |
COPYRIGHT | 7 年之前 | |
LICENSE | 7 年之前 | |
README.md | 7 年之前 | |
mama.sh | 7 年之前 | |
must.sh | 7 年之前 | |
mustize.sh | 7 年之前 | |
requirements.txt | 7 年之前 | |
style.sh | 6 年之前 | |
web-server.py | 6 年之前 |
Palette is a fork of Canvas to act as a polyglot backend.
Canvas is a modern, open-source LMS developed and maintained by Instructure Inc. It is released under the AGPLv3 license for use by anyone interested in learning more about or using learning management systems.
Palette is derived from Canvas, a JavaScript-heavy Ruby-on-Rails application. The backend is removed (no more Ruby!), as well as the frontend JavaScript. Remaining are JSX and ERB templates, which we semi-automatically convert to mustache, and the SCSS stylesheets, which are statically compiled. Then, the mustache templates are populated from a stub Python server with data from polyglot, which does the heavylifting.
You will need to install the Sass CSS preprocessor. As root:
# Arch
pacman -S ruby-sass
# Debian
apt install ruby-sass
You'll also need to install Python dependencies:
pip install -r requirements.txt
And, of course, you'll need to follow Polyglot's installation instructions as well.