Skip to content

Latest commit

 

History

History

api-counter-ssr

HTTP API Server Side Rendered HTML

This is a HTTP API example rendering a HTML template from a Bucket. It's making use of external Javascript - in this case reading the template (preflight) and rendering it (inflight).

Since this example makes use of external Javascript, it won't run in the Wing Playground yet.

diagram

Prerequisite

Please make sure to use a current and working setup of the wing cli

Usage

Wing Console

wing it

Get the URL from the API and open it in the browser. Each page reload will increase the counter.

console browser

Wing Tests

wing test --debug  main.w