Documentation WIP

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-11-15 13:31:43 +01:00
parent ffeb668ea9
commit 6b3413a8d4
11 changed files with 109 additions and 36 deletions
+27
View File
@@ -0,0 +1,27 @@
Quickstart Guide
================
Hello World! -- *Kapow!* style
------------------------------
In a shell, the traditional `Hello World!` program would be ``echo "Hello World!"``.
Let's publish it through HTTP using *Kapow!*
- First you need a *script file* with the route that will publish your command, lets's call the file ``greet.sh`` and should contain the following code:
.. code-block:: bash
kapow route add /greet -c 'echo "Hello World!" | kapow set /response/body'
- Start the *Kapow!* server with your script as an argument
.. code-block:: bash
kapow server greet.sh
- Finally check that all is working as intended:
.. image:: _static/browser.png