GithubHelp home page GithubHelp logo

mliebich / octal-application Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danallan/octal-application

0.0 1.0 0.0 7.37 MB

Online Course Tool for Adaptive Learning (OCTAL) application code, based on Metacademy.

License: GNU General Public License v3.0

Python 4.87% Shell 0.26% CSS 2.46% JavaScript 92.41%

octal-application's Introduction

OCTAL's Source

This source is licensed under GPLv3, see LICENSE.txt (note: metacademy's content is CC BY SA 3.0).

OCTAL is based upon Metacademy: https://github.com/metacademy/metacademy-application With a live demo at http://www.metacademy.org

The following instructions bring up a development version of OCTAL. Look at the production directions for creating a production-level OCTAL server.

Installation

Preliminary requirements

  • python 2.7X: NB: install python-devel if you're using a package manager such as apt-get. The following command should print a path (if this command raises an exception, make sure that you have the python-devel version installed):

          python -c 'from distutils.sysconfig import get_makefile_filename as m; print m()'
    
  • gcc: Install gcc (OSX users: installing the OSX developer tools is probably the easiest way to do this). The following command should not throw an error:

      gcc -v
    
  • pip Install pip; here are pip's installation instructions. The following command should not throw an error:

      pip -V
    
  • node.js (needed to run tests): Install node The following command should not throw an error:

      node -v
    
  • Make sure you have installed the following packages:

      freetype-devel gcc-gfortran (Linux)
      freetype gfortran (Mac OS X, via homebrew)
      easy_install virtualenv (both)
    
  • On Mac OS X, setup freetype:

      ln -s /usr/local/opt/freetype/include/freetype2 /usr/local/include/freetype
    

Mac OSX and *nix

  1. create a top-level octal directory in a desired location, e.g. mkdir -p ~/MyProjects/octal

  2. go to the top-level octal directory cd ~/MyProjects/octal

  3. from your top-level octal directory, clone the application repo:

     git clone https://github.com/danallan/octal-application.git
    
  4. go to the octal-application directory

     cd octal-application
    
  5. install the octal application (note: this project uses a virtual environment for development):

     make
    

    If you are on OS X and have a version of Xcode >= 5.1, you might need to prefix the above command with this:

     ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future make
    

Optional: create a superuser

    python app_server/manage.py createsuperuser

Scipy dependency

OCTAL currently depends scipy. Scipy can be tricky to install (pip install scipy won't work unless you have all of the systems-level dependencies), but Google might help here. Once that's done, link its site-packages folder to to your virtual environment's lib/python2.7/site-packages/ folder. One example (you might have to adapt to your install):

    ln -s /usr/local/lib/python2.7/site-packages/scipy lib/python2.7/site-packages/

Execution

Mac OSX and *nix

  1. start the virtual environment (you must do this for each new session)

     source ../meta_venv/bin/activate
    
  2. start the test servers

     ./run_test_servers.sh
    
  3. Open localhost:8080 with a modern javascript-enabled browser

Note: the initial search may take some time to load (the backend must load the graph into memory), but all subsequent pages should load much quicker.

Since this installation is based upon metacademy, if you have problems with the installation please be sure to look at the issues at https://github.com/metacademy/metacademy-application/issues?state=open

octal-application's People

Contributors

cjrd avatar danallan avatar zmmachar avatar rjreed avatar stuhlmueller avatar

Watchers

James Cloos 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.