@learninglocker/url-shortener
TypeScript icon, indicating that this package has built-in type declarations

1.5.5 • Public • Published

xAPI URL Shortener

A server for xAPI URL shortener

Build Status Renovate badge semantic-release Join the chat at https://gitter.im/LearningLocker/learninglocker Commitizen friendly

Installation

  1. Clone the repository git clone git@github.com:LearningLocker/url-shortener.git.
  2. Install dependencies npm install.
  3. Build the code npm run build.
  4. Run migrations npm run migrate.
  5. Start the server npm start.

Development

  1. Follow the installation procedure.
  2. Make your changes to the "src" directory.
  3. Build the code npm run build.
  4. Test the code npm test.
  5. Run the server npm start.
  6. Use the CLI npm link and xus --help.

Docker

You can use the steps below to install and run the xAPI URL Shortener.

  • Create a ".env" file using the ".env.example" file in this Github repository.
  • Pull the image from DockerHub docker pull learninglocker/url-shortener:master.
  • Run the image in a container docker run -d -p 8080:80 --name xus --env-file .env learninglocker/url-shortener:master.

To use the CLI you can use the steps below.

  • Enter the container docker exec -it xus bash.
  • Use the CLI xus --help.

Readme

Keywords

none

Package Sidebar

Install

npm i @learninglocker/url-shortener

Weekly Downloads

1

Version

1.5.5

License

GPL-3.0

Unpacked Size

588 kB

Total Files

93

Last publish

Collaborators

  • lydiamross
  • ryansmith94
  • ht2james
  • lpcicd