Code Monkey home page Code Monkey logo

learnosity-demos's Introduction

Learnosity API Demos

Jumpstart your integration of the Learnosity APIs into your learning platform.

Overview

This repository has been designed to allow users to quickly view and interact with some of the core Learnosity APIs.

Each page shows a basic integration to a specific Learnosity API which you can utilise and learn from.

There is also a SignatureUtils class which simplifies the generation of the security signatures for each of the types.

Getting Started - Native

  • Download the package
  • git clone --recursive https://github.com/Learnosity/learnosity-demos.git (make sure you have set up an SSH key in GitHub when you do the clone as the PHP SDK will not clone properly through HTTPS. Instructions here)
  • Put in a web accessible directory ^
  • Test it out by browsing to index.php

^ Note that you must use localhost as the domain (not 127.0.0.1), any port is fine but the internal security in some of the APIs is domain restricted. So until you contact Learnosity to whitelist specific domains, access is restricted to localhost.

If you have PHP 5.4+ you can use the local server to quickly get up and running, no Apache/IIS is required.

cd learnosity-demos/www
php -S localhost:5000

Visit localhost:5000 in a browser.

Getting Started - Using Vagrant

Vagrant is a wrapper for controlling Virtual Machines in a controlled and isolated manner. Vagrant supports all the major platforms and is simple to use and very handy for other development tasks (if you're not already using it!). Vagrant by default supports VirtualBox as it's VM host, but it does support others like VMWare, Parallels, and even AWS EC2.

The included Vagrantfile will download a VM image and install all the needed PHP dependancies. Once the VM is running the demos can be used (and modified) without you needing to install anything else.

In order to use Vagrant you need to have installed:

Once these are installed using this demo is as easy as :

git clone --recursive https://github.com/Learnosity/learnosity-demos.git
cd learnosity-demos
vagrant up

Then opening your browser to localhost:8080. You can modify files and have the results served by the VM instantly.

To control the VM you can do one of the following :

  • Stop the VM: vagrant halt
  • Start the VM: vagrant up
  • Destroy the VM: vagrant destroy

Consumer

This package comes with demo security (consumer) credentials. If you have your own consumer details (as provided by Learnosity) you may use them by editing config.php

Requirements

  • PHP 5.3+
  • You must be connected to the internet to use this site

Documentation

More API documentation is available at the Learnosity Docs site

learnosity-demos's People

Contributors

michaelsharman avatar lrnci avatar mcgoughn avatar keremdaldal avatar gonzalozawa avatar marklynch avatar amlearn avatar mobywhale-chan avatar denishoctor avatar stellalie avatar alangarf avatar klauste avatar lukeggchapman avatar gavincooney avatar eoghanmcilwaine avatar mrmarktyy avatar karoltarasiuk avatar sebablanco avatar r4chel avatar jack-vo avatar jeznag avatar david-learnosity avatar learnosity-frank-an avatar clareq avatar kevinmcdonnell avatar andyclearnosity avatar bjhchong avatar pierrebergamin avatar gitter-badger avatar bextream avatar

Watchers

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