This is an example of a "Hello, World!" application, which is as simple as one can get.
In run.ts
, you can see what it is like to configure and start the server, add a route, and respond to a request with a simple value.
Make sure Deno is installed and up to date.
The fastest way to run the example is to use its URL:
deno run -A https://deno.land/x/pogo/example/hello-world/run.ts
Alternatively, if you want to play around with the example, run it from a local file:
curl -fsSL https://github.com/sholladay/pogo/archive/master.tar.gz | tar -xz --strip-components=1 'pogo-master/example'
deno run -A example/hello-world/run.ts
When you are done with this example, check out Simple Server to see some other features of Pogo and how you can write tests for your app.