Standalone web frontend for Kolibri.
yarn install
At the moment, this project is hard-coded to communicate with a Kolibri server running at http://localhost:8000. This server must be configured to provide CORS headers in its response such that the web frontend is allowed to make requests from Kolibri's API. I achieved this with the following steps.
Install django-cors-headers:
pip install django-cors-headers
In Kolibri's install directory, edit kolibri/deployment/default/settings/base.py
to include the following:
INSTALLED_APPS = [
"kolibri.core",
...
"morango",
"corsheaders"
]
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
...
]
CORS_ALLOW_ALL_ORIGINS = True
yarn serve
yarn build
yarn lint