xapi-service
v2.0.1
Published
A service for the xAPI
Downloads
40
Readme
xAPI service
Learning Locker is a trademark of HT2 Inc.
Installation
To install all of Learning Locker, see the installation documentation. To install just the xAPI service, you can follow the instructions below.
- Clone the repository
git clone [email protected]:LearningLocker/xapi-service.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 service.
- Create a ".env" file using the ".env.example" file in this Github repository.
- Pull the image from DockerHub
docker pull learninglocker/xapi-service:latest
. - Run the image in a container
docker run -d -p 8080:80 --env-file .env learninglocker/xapi-service:latest
.