Computing Course classWebApps
Brought to you by:
neosurya
File | Date | Author | Commit |
---|---|---|---|
classmate | 2018-10-12 |
![]() |
[537441] Working version of front end. URL is absolute t... |
docs | 2018-10-02 |
![]() |
[6fc605] Fixed a UI bug. When a user first selects assig... |
Readme.txt | 2018-10-11 |
![]() |
[4dc68a] Working opencv code. All integration finsihed e... |
manage.py | 2017-11-09 |
![]() |
[48a669] Initial commit |
requirements.txt | 2018-08-04 |
![]() |
[682383] Added requirements file |
export PYTHONPATH=/media/kompalli/Windows8_OS/surya/work/fasl/r_and_d/classanalytics/head_pose/py3_env/lib/python3.5/site-packages:$PYTHONPATH -------------------------------- apt-get install python3 python3.5-dev ---------------------------------------------------------------- You need python3 for this work. Installing PIP and related libraries for the Django Env: python3 -m pip install --user --upgrade pip If above does not work, try: wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py Install virtual env: python3 -m pip install --user virtualenv Create virtual env using the following command: python3 -m virtualenv py3_env # create the databases needed for django. python3 manage.py makemigrations classmate python3 manage.py migrate --run-syncdb # create superuser login python3 manage.py createsuperuser cd /home/kompalli/repo/classWebApps/ python3 manage.py runserver 0.0.0.0:8001 >> info.log 2>> err.log & ---------------------------------------------------------------- # https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04 # Scripts to install elastic search and kibana. wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list sudo apt-get update sudo apt-get -y install elasticsearch kibana sudo vi /etc/elasticsearch/elasticsearch.yml # You will want to restrict outside access to your Elasticsearch instance (port 9200), so outsiders can't read your data or shutdown your Elasticsearch cluster through the HTTP API. Find the line that specifies network.host, uncomment it, and replace its value with "localhost" so it looks like this: # network.host: localhost sudo vi /opt/kibana/config/kibana.yml # Set the following content: use an Nginx reverse proxy to allow external access. # server.host: 0.0.0.0 # Restart Elastic search and Kibana sudo update-rc.d elasticsearch defaults 95 10 sudo update-rc.d kibana defaults 96 9 sudo service elasticsearch restart sudo service kibana start sudo apt-get install nginx apache2-utils curl -XGET 'http://localhost:9200/student_data' curl -XDELETE 'localhost:9200/student_data' curl -XGET 'http://localhost:9200/' ---------------------------------------------------------------- Implementing Telugu and Hindi input. If using Ubuntu, follow the below steps: Install Ibus using the following command: sudo apt-get install ibus-m17n After this, goto: Settings > Text entry > Input Sources Select Hindi (itrans (m17n))(IBus) Select Telugu (itrans (m17n))(IBus) On the top right side of the system tray, an Icon should appear which lets you switch between keyboard layouts. Along with the existing layouts, two buttons should appear saying: क itrans (m17n) క itrans (m17n) A system reboot may be needed in some cases if the two icons do not appear. These two options are for Hindi and Telugu respectively. -------------------------------- Export document collection from mongoDB: mongoexport --db ClassAnalyticsDB -c document_collection --out classDB.json Import document collection into mongoDB: