Tools for content creation
-
Install Collaboration Communities from https://github.com/fresearchgroup/Collaboration-System/
-
Clone etherpad-lite from https://github.com/ether/etherpad-lite
git clone https://github.com/ether/etherpad-lite
-
Clone the current directory and place the contents of
etherpad-lite
folder inetherpad-lite
root directory. -
Install Node JS from https://nodejs.org/
-
Run the following commands
./bin/run.sh
-
Place the
APIKEY
in.env
folder ofCollaboration-System
cat APIKEY.txt cd path/to/collaboration-communities vi .env
And assign the content you got from
APIKEY.txt
to variableAPIKEY=
-
Run the Python Server
python manage.py runserver
-
Install Collaboration Communities from https://github.com/fresearchgroup/Collaboration-System/
-
Clone etherpad-lite from https://github.com/ether/etherpad-lite
git clone https://github.com/ether/etherpad-lite
-
Clone the current directory and place the contents of
etherpad-lite
folder inetherpad-lite
root directory. -
Install Node JS from https://nodejs.org/
-
Install Docker from https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository
-
Install Docker-Compose form https://docs.docker.com/compose/install/
-
In the
etherpad-lite
folder run the following commandssudo docker build -t etherpadlite .
-
Setup database from Collaboration Communities for Docker
-
Setup environment for Django app.
sudo docker run -p 9001:9001 etherpadlite sudo docker ps
Using the container image from above
sudo docker exec -i <image-name> cat APIKEY.txt
-
Place the above string in the
.env.docker
inCollaboration-Communities
folder forAPIKEY
variable. -
Place the
IP address
of docker in the.env.docker
inCollaboration-Communities
folder forNODESERVERURL
variable. -
Continue with the setup of Collaboration Communities.
This project was developed from the github repository, https://github.com/DrClockwork/H5PP which has the documentation of integrating any Django Project with H5P.
- Clone this repository
git clone https://github.com/Content-Tools-Team/H5P.git
- Create a virtual environment, with python 2.7 , django 1.8
virtualenv venv --python=python2.7
- Activate the virtual environment
source venv/bin/activate
- Inside the virtual environment, install the following:
pip install -r requirements.txt
- Install the H5P plugin in the virtual environment
pip install H5PP-0.1.9.tar.gz
- Install mysql and configure the database
pip install mysql
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev
python sql_reset.py
- Create a superuser
python manage.py createsuperuser
- Run the server by going to the project's main directory
python manage.py runserver
-
Go to
https://h5p.org/sites/default/files/official-h5p-release-20170301.h5p
and download the official h5p libraries. -
Go to
http://localhost:8000/h5p/home
and upload the libraries.
-- Install Docker and Docker-Compose from --
Docker - https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository
Docker Compose -- https://docs.docker.com/compose/install/
- Clone the repository --
git clone https://github.com/fresearchgroup/Collaboration-System.git
git clone https://github.com/fresearchgroup/Community-Content-Tools.git
- The run the following commands inside the repository --
Note: Community-Content-Tools repository has been referred to as the H5P directory
In the .env.docker of both CC and H5P,
replace 172.17.0.1 in COLLAB_ROOT and H5P with docker0 inet address
To find this,
$ ifconfig
search for docker0 and copy inet address in place of 172.17.0.1
In the H5P directory,
sudo docker build -t h5p_image .
In the Collaboration-System directory,
sudo docker-compose build
sudo docker-compose up db
sudo docker exec -i <db-container-image-name> mysql -u<username> -p<password> django < collab-updated.sql
sudo docker-compose up
Go to https://h5p.org/sites/default/files/official-h5p-release-20170301.h5p
and download the official h5p libraries.
Go to http://yourdockerip:8000/h5p/libraries
and upload the downloaded libraries and select proceed.