这是indexloc提供的服务,不要输入任何密码
Skip to content

xchapter7x/purview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

purview

POC for a view rendering microservice

the idea here is to completely decouple the V in MVC. Making the rendering and all templates independently renderable from disparate services to be composed up as per the clients desires. This brings the added benefit of providing Horizontal scalability as well as a clearly defined interface for rendering your views.

well thats the idea anyway

run the POC service

  • this provides a few sample templates to test the rendering and calling the service
  • configure it as you see fit if you like.
$ git clone https://github.com/xchapter7x/purview.git
$ cd purview/cmd/purview
$ VIEW_PATH=samples/views go run main.go

on another terminal query the service for rendered templates

$ curl -XPOST localhost:8080/v1/render/view/samples/views/index.tmpl -d'{"Testing":"blah", "Another":["something","else","completely"]}'

About

a view rendering microservice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages