Sign inSign up

ezpaarseproject/ezpaarse-badge

By ezpaarseproject

Updated almost 6 years ago

Open badges management for ezPAARSE

Image
1

2.2K

ezpaarseproject/ezpaarse-badge repository overview

ezPAARSE-Badge

Build Status Docker stars Docker Pulls

Node.js server using OpenBadgeFactory API

Requirements

  • Node.js v9+
  • OpenSSL

Configuration

Generate your certificate signing request token in Admin tools → API key, use your certificate in OBF_CERT (environment variable) and run this command :

$ npm run conf

Build Setup

$ docker-compose up

Config file

  • port : Application port
  • urlApi : OpenBadgeFactory API
  • email :
    • subject : Email subject
    • body : Email content, :recipientName var replace by user's email
    • button : Text displayed on the badge recovery button
    • footer : Text displayed in email footer
  • logEntry :
    • client : Name of the badge-issuing application
    • issuer : Issuer name
  • mongo :
    • host : Database host
    • port : Database port
    • db : Database name
  • authority : Authority name used to set licence in a badge
  • cacheTime : Time in hours to regenerate cache from server launch
  • continuousIntegration : Allow to launch the server without the certificates presence

API routes

URLActionRequest body
GET /Give the name and version of the application
GET /pingPing OpenBadgeFactory API
GET /metricsGet total issuances by badge
GET /metrics/countGet count of badges
GET /badgesGet user's badgesQuery String
  • id: trello id
POST /badges/emitEmits badge for userJSON
  • badgeId: ID of the badge to be issued
  • recipient
    • id: recipient id (trello id)
    • email: recipient email
    • name: recipient name
PUT /badges/visibilityChange visibility userJSON
  • userId: ID of user
  • visibility: Boolean true/false
GET /share/:type/:uuid/:localeDisplay issued badge's pageHTML
  • type: Type of view (embed/view)
  • uuid: User ID
  • locale: Language en/fr (default: en)

Tag summary

Content type

Image

Digest

Size

197.5 MB

Last updated

about 8 years ago

docker pull ezpaarseproject/ezpaarse-badge