Giter Site home page Giter Site logo

ezpaarse-badge's Introduction

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

URL Action Request body
GET / Give the name and version of the application
GET /ping Ping OpenBadgeFactory API
GET /metrics Get total issuances by badge
GET /metrics/count Get count of badges
GET /badges Get user's badges Query String
  • id: trello id
POST /badges/emit Emits badge for user JSON
  • badgeId: ID of the badge to be issued
  • recipient
    • id: recipient id (trello id)
    • email: recipient email
    • name: recipient name
PUT /badges/visibility Change visibility user JSON
  • userId: ID of user
  • visibility: Boolean true/false
GET /share/:type/:uuid/:locale Display issued badge's page HTML
  • type: Type of view (embed/view)
  • uuid: User ID
  • locale: Language en/fr (default: en)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.