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)

ezpaarse-badge's People

Contributors

wilmouths avatar nojhamster avatar

Stargazers

Massimo Romano avatar Luca Bisognin avatar Amaury Van Espen avatar

Watchers

Stéphane Gully avatar James Cloos avatar Dominique avatar Thomas Porquet avatar  avatar Amaury Van Espen avatar  avatar  avatar

Forkers

m0m0sms-edu

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.