xapi-statements
v5.0.6
Published
A service for xAPI statements
Downloads
881
Readme
xAPI Statements
Learning Locker is a trademark of HT2 Inc.
Installation
To install all of Learning Locker, see the installation documentation. To install just the xAPI statements service, you can follow the instructions below.
- Clone the repository
git clone [email protected]:LearningLocker/xapi-statements.git
. - Install dependencies
npm install
. - Build the code
npm run build
. - Start the server
npm start
.
Development
- Follow the installation procedure.
- Make your changes to the "src" directory.
- Build the code
npm run build
. - Test the code
npm run test-all
. - Run the server
npm start
.
Docker
You can use the steps below to install and run the xAPI statements service.
- Create a ".env" file using the ".env.example" file in this Github repository.
- Pull the image from DockerHub
docker pull learninglocker/xapi-statements:master
. - Run the image in a container
docker run -d -p 8080:80 --env-file .env learninglocker/xapi-statements:master
.