Skip to content

This repository is to run Learning Locker in Windows for project OpenLAP. This is not the official Learning Locker. Please refer to the official Learning Locker GitHub page (https://github.com/LearningLocker/learninglocker)

Notifications You must be signed in to change notification settings

ude-soco/openlap-learninglocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get started with Learning Locker in Windows

Please follow the steps below to install a Learning Locker instance in Windows.

  • Install Node 8.9.0 using NVM, MongoDB, and Redis for Windows

  • Install yarn and PM2. PM2 is a tool to manage the node process. Install PM2 and pm2-logrotate module

    npm install -g yarn [email protected] node-gyp
    
    pm2 install pm2-logrotate
    
    pm2 set pm2-logrotate:compress true
    
  • Install Visual Studio Community 2017. Make sure to install the package Desktop development with C++

  • Set VCINSTALLER system variable to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC. Read more

  • Open PowerShell in admin mode and type the following commands

    npm --vs2015 install --global windows-build-tools
    
    npm config set msvs_version 2017 --global
    
    npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
    
  • Go to learning-locker folder

    • Make a copy of example.env file and rename it to .env

    • Install the yarn packages

      yarn install --ignore-engines
      
    • Build all the services in learning locker

      yarn build-all
      
    • Run the required migrations

      yarn migrate
      
    • Create an site admin

      node cli/dist/server createSiteAdmin [email protected] soco 1234qweR
      
  • Go to xapi-service folder

    • Make a copy of example.env file and rename it to .env

    • Install the yarn packages

      yarn install --ignore-engines
      
    • Build all the services in xapi service

      yarn build
      

Running the server

  • Go to learning-locker folder and run the following command

    pm2 start pm2/all.json
    
  • Go to xapi-service folder and run the following command

    pm2 start pm2/xapi.json
    

Accessing the learning locker server

  • Go to http://localhost:3000 to access the learning locker server

  • Login using the admin credentials created in the previous step

  • Select the organization soco. Click on settings and select Stores tab. Add a new store and leave the default values

  • Click on the Clients tab and open the New xAPI store client panel. Use the Basic Auth credentials to access the xapi service (required to communicate with the xapi service from any other application)

PM2 commands

  • Check the status

    pm2 status
    
  • Restart pm2

    pm2 restart
    
  • Stop the PM2 server

    pm2 kill
    

About

This repository is to run Learning Locker in Windows for project OpenLAP. This is not the official Learning Locker. Please refer to the official Learning Locker GitHub page (https://github.com/LearningLocker/learninglocker)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published