Code Monkey home page Code Monkey logo

community-content-tools's Introduction

Community-Content-Tools

Tools for content creation

Installing Etherpad Module for Collaboration Communities

Installing using virtualenv

  1. Install Collaboration Communities from https://github.com/fresearchgroup/Collaboration-System/

  2. Clone etherpad-lite from https://github.com/ether/etherpad-lite

     git clone https://github.com/ether/etherpad-lite
    
  3. Clone the current directory and place the contents of etherpad-lite folder in etherpad-lite root directory.

  4. Install Node JS from https://nodejs.org/

  5. Run the following commands

     ./bin/run.sh
    
  6. Place the APIKEY in .env folder of Collaboration-System

     cat APIKEY.txt
     cd path/to/collaboration-communities
     vi .env
    

    And assign the content you got from APIKEY.txt to variable APIKEY=

  7. Run the Python Server

     python manage.py runserver
    

Installing Etherpad Module Using Docker

  1. Install Collaboration Communities from https://github.com/fresearchgroup/Collaboration-System/

  2. Clone etherpad-lite from https://github.com/ether/etherpad-lite

     git clone https://github.com/ether/etherpad-lite
    
  3. Clone the current directory and place the contents of etherpad-lite folder in etherpad-lite root directory.

  4. Install Node JS from https://nodejs.org/

  5. Install Docker from https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository

  6. Install Docker-Compose form https://docs.docker.com/compose/install/

  7. In the etherpad-lite folder run the following commands

     sudo docker build -t etherpadlite .
    
  8. Setup database from Collaboration Communities for Docker

  9. 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
    
  10. Place the above string in the .env.docker in Collaboration-Communities folder for APIKEY variable.

  11. Place the IP address of docker in the .env.docker in Collaboration-Communities folder for NODESERVERURL variable.

  12. Continue with the setup of Collaboration Communities.

h5p module for django

This project was developed from the github repository, https://github.com/DrClockwork/H5PP which has the documentation of integrating any Django Project with H5P.

Steps for installation :

  1. Clone this repository
git clone https://github.com/Content-Tools-Team/H5P.git
  1. Create a virtual environment, with python 2.7 , django 1.8
virtualenv venv --python=python2.7 
  1. Activate the virtual environment
source venv/bin/activate
  1. Inside the virtual environment, install the following:
pip install -r requirements.txt
  1. Install the H5P plugin in the virtual environment
pip install H5PP-0.1.9.tar.gz
  1. 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
  1. Create a superuser
python manage.py createsuperuser
  1. Run the server by going to the project's main directory
python manage.py runserver  
  1. Go to https://h5p.org/sites/default/files/official-h5p-release-20170301.h5p and download the official h5p libraries.

  2. Go to http://localhost:8000/h5p/home and upload the libraries.

DOCKER INSTALLATION --

-- 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/
  1. Clone the repository --
   	git clone https://github.com/fresearchgroup/Collaboration-System.git
	git clone https://github.com/fresearchgroup/Community-Content-Tools.git
  1. 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.

community-content-tools's People

Contributors

abhijitbonik avatar dhanushsr avatar fresearchgroup avatar naveentvelu avatar saurabhshwetabhsingh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.