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