Skip to main content

A FUN portal for Open edX

Project description

Richie, the best OpenSource CMS to build education portals

CircleCI

Overview

Learning Management Systems (LMS) are great tools for hosting and playing interactive online courses and MOOCs.

However, if you need to build a complete website with flexible content to aggregate your courses, in several languages and from different sources, you will soon need a CMS.

At "France Université Numérique", we wanted to build an OpenSource portal with Python and Django. That's why we built Richie on top of DjangoCMS, one of the best CMS on the market, as a toolbox to easily create full fledged websites with a catalog of online courses.

Among the features that Richie offers out of the box:

  • multi-lingual by default,
  • advanced access rights and moderation,
  • catalog of courses synchronized with one or more LMS instances,
  • search engine based on Elasticsearch and pre-configured to offer full-text queries, multi-facetting, auto-complete,...
  • flexible custom pages for courses, organizations, categories, teachers, blog posts (and their inter-relations),
  • Extensible with any third-party DjangoCMS plugin or any third-party Django application.

Demo

You can test Richie on our demo site.

login/password: admin/admin

The database, is regularly flushed.

Architecture

Richie is a container-native application but can also be installed on your machine.

For development, the project is defined using a docker-compose file and consists of 4 services:

  • db: the Postgresql database,
  • elasticsearch: the search engine,
  • app: the actual DjangoCMS project with all our application code,
  • node: used for front-end related tasks, i.e. transpiling TypeScript sources, bundling them into a JS package, and building the CSS files from Sass sources.

At "France Université Numérique", we deploy our applications on OpenShift/Kubernetes using Arnold.

Getting started

First, make sure you have a recent version of Docker and Docker Compose installed on your laptop:

$ docker -v
  Docker version 1.13.1, build 092cba3

$ docker-compose --version
  docker-compose version 1.17.1, build 6d101fb

⚠️ You may need to run the following commands with sudo but this can be avoided by assigning your user to the docker group.

The easiest way to start working on the project is to use our Makefile:

$ make bootstrap

This command builds the app container, installs front-end and back-end dependencies, builds the front-end application and styles, and performs database migrations. It's a good idea to use this command each time you are pulling code from the project repository to avoid dependency-related or migration-related issues.

Now that your Docker services are ready to be used, start the full CMS by running:

$ make run

You should be able to view the site at localhost:8070

Once the CMS is up and running, you can create a superuser account:

$ make superuser

You can create a basic demo site by running:

$ make demo-site

Note that if you don't create the demo site and start from a blank CMS, you will get some errors requesting you to create some required root pages. So it is easier as a first approach to test the CMS with the demo site.

Contributing

This project is intended to be community-driven, so please, do not hesitate to get in touch if you have any question related to our implementation or design decisions.

We try to raise our code quality standards and expect contributors to follow the recommandations from our handbook.

Checking your code

We use strict flake8, pylint, isort and black linters to check the validity of our backend code:

$ make lint-back

We use strict tslint and prettier to check the validity of our frontend code:

$ make lint-front

Running tests

On the backend, we use pytest to run our test suite:

$ make test-back

On the frontend, we use karma to run our test suite:

$ make test-front

Running migrations

The first time you start the project with make bootstrap, the db container automatically creates a fresh database named richie and performs database migrations. Each time a new database migration is added to the code, you can synchronize the database schema by running:

$ make migrate

Handling new dependencies

Each time you add new front-end or back-end dependencies, you will need to rebuild the application. We recommend to use:

$ make bootstrap

To go further

To see all available commands, run:

$ make

We also provide shortcuts for docker-compose commands as sugar scripts in the bin/ directory:

bin
├── exec
├── pylint
├── pytest
└── run

More details and tips & tricks can be found in our development with Docker documentation

License

This work is released under the MIT License (see LICENSE).

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

richie-1.8.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

richie-1.8.1-py2.py3-none-any.whl (1.5 MB view details)

Uploaded Python 2Python 3

File details

Details for the file richie-1.8.1.tar.gz.

File metadata

  • Download URL: richie-1.8.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for richie-1.8.1.tar.gz
Algorithm Hash digest
SHA256 45c0dad1fc3f55f8f46ad85e257ecf7f2b859b9b43f6ea11ecd37e50cc463cce
MD5 eef6b2b57af02500d41605e8ee668202
BLAKE2b-256 35bc20e71ddbbdf0f5a88ad5122c0959553580ac711ee4af4cf2763dcbf9d74c

See more details on using hashes here.

File details

Details for the file richie-1.8.1-py2.py3-none-any.whl.

File metadata

  • Download URL: richie-1.8.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for richie-1.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a45bf33cba40ea5509d56b6158aabfb277ad73497bb6e04bb607dd972e423148
MD5 3045c02602a81b1e5612a8fba8cb0d2f
BLAKE2b-256 cebb461fe85e3ebcef14efb0cf2eb3fdbcff380a69f0d24adf3d57378c81b30d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page