This is the code for the KA Lite Central Server: https://kalite.learningequality.org
- Install requirements:
- install node if you don't have it already.
- Get the codebase:
git clone --recursive https://github.com/fle-internal/ka-lite-central.git
(if you're planning to make changes, you should fork the repo and clone your fork instead) - Install the dependencies listed in packages.json:
sudo npm install
- Install grunt:
sudo npm install -g grunt-cli
- Go into the centralserver directory:
cd centralserver
- Set up the server:
python manage.py setup
- Return to the root directory: 'cd ..'
- Run grunt in the root directory:
grunt
- Return to the code directory:
cd centralserver
- Set up a custom
centralserver/local_settings.py
file (see below) - Run the server:
python manage.py runserver
After cloning the distrbuted server codebase from https://github.com/learningequality/ka-lite, add the following to its kalite/local_settings.py
prior to running install.sh
or install.bat
:
CENTRAL_SERVER_HOST = "127.0.0.1:8000"
SECURESYNC_PROTOCOL = "http"
This will cause it to point to your locally running instance of the central server for registering and syncing.
You may create a centralserver/local_settings.py
file to customize your setup. Here are a few options to consider:
DEBUG = True
- turns on debug messagesEMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
- will output email messages (like account registration and contact) to the consoleUSE_DEBUG_TOOLBAR = True
- Use the Django debug toolbar, which gives info about queries, context values, and more!
CROWDIN_PROJECT_ID
andCROWDIN_PROJECT_KEY
- these are private; you'll have to get in touch with a (FLE) team member who has them.-
KA_CROWDIN_PROJECT_ID
andKA_CROWDIN_PROJECT_KEY
- these are private (from Khan Academy); you'll have to get in touch with a (FLE) team member who has them.