xapi-activities
Version:
A server for xAPI activities
36 lines (27 loc) • 2.08 kB
Markdown
# xAPI activities
> A server for xAPI activities
[](https://www.npmjs.com/package/xapi-activities)
[](https://travis-ci.org/LearningLocker/xapi-activities)
[](https://greenkeeper.io/)
[](https://github.com/semantic-release/semantic-release)
[](https://gitter.im/LearningLocker/learninglocker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](http://commitizen.github.io/cz-cli/)
*Learning Locker is a trademark of [HT2 Inc.](http://ht2labs.com)*
### Installation
To install all of Learning Locker, see the [installation documentation](http://docs.learninglocker.net/guides-installing/). To install just the xAPI activities service, you can follow the instructions below.
1. Clone the repository `git clone git@github.com:LearningLocker/xapi-activities.git`.
1. Install dependencies `npm install`.
1. Build the code `npm run build`.
1. Run migrations `npm run migrate`.
1. Start the server `npm start`.
### Development
1. Follow [the installation procedure](#installation).
1. Make your changes to the "src" directory.
1. Build the code `npm run build`.
1. Test the code `npm run test-all`.
1. Run the server `npm start`.
### Docker
You can use the steps below to install and run the xAPI activities service.
- Create a ".env" file using the ".env.example" file in this Github repository.
- Pull the image from DockerHub `docker pull learninglocker/xapi-activities:master`.
- Run the image in a container `docker run -d -p 8080:80 --name xus --env-file .env learninglocker/xapi-activities:master`.