Skip to content

lagamaite/checkbox.io-micro-preview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice > Preview

Extracted microservice from https://github.com/chrisparnin/checkbox.io.

Service

  1. Exposes the endpoint GET localhost:3000/survey/{filename} returns html body (viewable in browser).

  2. Exposes the endpoint POST localhost:3000/json, accepting a body with {markdown: <string>}.

Returns the result {preview: <html>}.

Testing locally

Start service.

node index.js
Microservice listening on http://localhost:3000/{survey,json}
curl -X POST -H "Content-Type: application/json" --data @test/resources/survey.json http://localhost:3000/json

About

Extracted microservice for providing rendered markdown survey preview.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.8%
  • Pug 10.3%
  • Shell 0.9%