2017 © Pedro PelĂĄez
 

library learnosity-demos

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

image

learnosity/learnosity-demos

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

  • Wednesday, July 25, 2018
  • by learnosity_oss
  • Repository
  • 60 Watchers
  • 18 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 4 Open issues
  • 33 Versions
  • 400 % Grown

The README.md

Learnosity API Demos

Jumpstart your integration of the Learnosity APIs into your learning platform., (*1)

Overview

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

Each page shows a basic integration to a specific Learnosity API which you can utilize and learn from., (*3)

Requirements

  • PHP 8.1+
  • You must be connected to the Internet to use this site

Getting Started

The following shows you how to get the code in this repository up and running as a stand-alone site., (*4)

First, get the code with, (*5)

git clone https://github.com/Learnosity/learnosity-demos.git

Note: To simplify the next steps, you'll need the make utility (usually available in the development tools of your platform). If this option is not available to you, see the next two sections, which show you how to start the demos site manually., (*6)

The simple Makefile included with this project allows you to start one or the other modes, by running either of the following commands from the learnosity-demos directory that was just created., (*7)

make run-php  # See “Using PHP's native server” below to see what this does

You can then visit http://localhost:8080 in a browser., (*8)

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., (*9)

If port 8080 is already in use, you can specify a custom port instead, with, (*10)

make run-php PORT=8000  # Using custom port 8000

You would then be able visit http://localhost:8000 in a browser., (*11)

Using PHP's native server

You can use PHP's built-in server to quickly get up and running., (*12)

git clone https://github.com/Learnosity/learnosity-demos.git
cd learnosity-demos
php -S localhost:8080 --docroot www

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 lrn_config.php, (*13)

Documentation

More API documentation is available at the Learnosity Developer Documentation, (*14)

PHP dependency management using Composer

While this demonstration project ships with dependency libraries (such as the Learnosity SDK) for ease of use, it is not recommended practice to do so on production projects. The composer tool can be used for the purpose of installing and upgrading third-party libraries., (*15)

See composer-getting-started for instructions on setting it up on your platform. You can then try it out on this project, by running the following in the learnosity-demos directory you cloned using git as detailed in the previous sections., (*16)

composer install # Reinstall dependencies as specified in the shipped composer.lock

composer update # Upgrade dependencies according to constraints in composer.json

Note that the make-based instructions in the “Getting Started” section take care of the following for you., (*17)

For simplicity, the get-composer.php script can be used to fetch a local version of composer. It will be named composer.phar, and will have to be called as ./composer.phar instead of just composer., (*18)

If using macOS, you can set up Homebrew to install php and composer., (*19)

brew install php
brew install composer

The Versions

25/07 2018

dev-fix/stand-alone-site

dev-fix/stand-alone-site https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

23/07 2018

dev-demos-revamp-author

dev-demos-revamp-author https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

20/07 2018

dev-develop

dev-develop https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

16/07 2018

dev-master

9999999-dev https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

12/07 2018

dev-feature/sdk-composer

dev-feature/sdk-composer https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

12/07 2018

dev-LRN-19033/feature/vg7-support

dev-LRN-19033/feature/vg7-support https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

09/07 2018

dev-release/s09-2018

dev-release/s09-2018 https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

20/06 2018

dev-LRN-19016/feature/custom-questions-js

dev-LRN-19016/feature/custom-questions-js https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

21/05 2018

dev-feature/add-404-checks

dev-feature/add-404-checks https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

02/05 2018

dev-qe-v3-demos-cleanup

dev-qe-v3-demos-cleanup https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

20/04 2018

dev-LRN-15819/escrow-tests

dev-LRN-15819/escrow-tests https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

04/04 2018

dev-LRN-18900/bug/routing_problems

dev-LRN-18900/bug/routing_problems https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

13/03 2018

dev-multiple-items-api-inline-demo

dev-multiple-items-api-inline-demo https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

15/02 2018

dev-LRN-18065/repro-in-dev

dev-LRN-18065/repro-in-dev https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

10/01 2018

dev-LRN-17877/feature/add-responsive-regions-flags

dev-LRN-17877/feature/add-responsive-regions-flags https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

13/10 2017

dev-demo/setup-distractor-dependency-demo

dev-demo/setup-distractor-dependency-demo https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

11/10 2017

dev-revert-69-LRN-16051/feature/assess-administration-panel-submit

dev-revert-69-LRN-16051/feature/assess-administration-panel-submit https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

06/10 2017

dev-ZD4096

dev-ZD4096 https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

26/09 2017

dev-LRN-16051/feature/assess-administration-panel-submit

dev-LRN-16051/feature/assess-administration-panel-submit https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

26/09 2017

dev-LRN-16200/custom-question-update

dev-LRN-16200/custom-question-update https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

14/09 2017

dev-ZD5018

dev-ZD5018 https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

28/08 2017

dev-LRN-16399/deepclonefancytesting

dev-LRN-16399/deepclonefancytesting https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

23/08 2017

dev-LRN-16221/config/set-reactive-views-to-true

dev-LRN-16221/config/set-reactive-views-to-true https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

22/03 2017

dev-restrict-responses

dev-restrict-responses https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

08/03 2017

dev-LRN-10793/test/gutted-test-page

dev-LRN-10793/test/gutted-test-page https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

19/01 2017

dev-texthelp2

dev-texthelp2 https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

21/10 2016

dev-LRN-12143/test_script

dev-LRN-12143/test_script https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

18/10 2016

dev-distractors

dev-distractors https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

04/10 2016

dev-LRN-11466/bug/redirection-test

dev-LRN-11466/bug/redirection-test https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

23/09 2016

dev-feature/add-session-report-page

dev-feature/add-session-report-page https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

14/09 2016

dev-texthelp

dev-texthelp https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

05/04 2016

dev-LRN-8604/feature/custom_button_for_wysihtml

dev-LRN-8604/feature/custom_button_for_wysihtml https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos

22/03 2016

dev-worksheet-demo

dev-worksheet-demo https://github.com/Learnosity/learnosity-demos

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

  Sources   Download

MIT

The Requires

 

learnosity demos