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 pm2@4.3.0 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 toC:\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 admin@mail.com 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
-
-
Go to
learning-locker
folder and run the following commandpm2 start pm2/all.json
-
Go to
xapi-service
folder and run the following commandpm2 start pm2/xapi.json
-
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 selectStores
tab. Add a new store and leave the default values -
Click on the
Clients
tab and open theNew 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)
-
Check the status
pm2 status
-
Restart pm2
pm2 restart
-
Stop the PM2 server
pm2 kill