Wapp

Check-in [5f79eb875f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add the forgotten helloworld.md documentation file.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5f79eb875fb9b68e660e54a09634acedbb19a0d4da2a63edc6a4ffcd94cbd7d1
User & Date: drh 2019-03-08 00:08:05
Context
2019-04-01
00:53
Improved SCGI security: (1) The --scgi option only listens on IP address 127.0.0.1. The new --remote-scgi option must be used if the webserver is on a different machine. (2) The new --fromip option can be used to restrict incoming requests to a particular IP address. (3) In SCGI mode, the new parameter "SERVER_ADDR" contains the IP address of the webserver that originated the SCGI request. check-in: fb5eafae32 user: drh tags: trunk
2019-03-08
00:08
Add the forgotten helloworld.md documentation file. check-in: 5f79eb875f user: drh tags: trunk
2019-03-07
14:49
More documentation improvements. check-in: 984d973c34 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Added docs/helloworld.md.

            1  +Hello World
            2  +===========
            3  +
            4  +Here is a "Hello, World!" web application written using Wapp:
            5  +
            6  +>
            7  +    #!/usr/bin/tclsh
            8  +    package require wapp
            9  +    proc wapp-default {} {
           10  +      wapp-subst {<h1>Hello, World!</h1>\n}
           11  +    }
           12  +    wapp-start $argv
           13  +
           14  +To run this application using the built-in web-server, store the code above
           15  +in a file (here we use the name "hello.tcl") and do:
           16  +
           17  +>
           18  +    tclsh hello.tcl
           19  +
           20  +To run the app using the built-in web-server bound to all TCP addresses
           21  +and listening on port 8080, use:
           22  +
           23  +>
           24  +    tclsh hello.tcl --server 8080
           25  +
           26  +To run the app as an SCGI server listening on port 9001:
           27  +
           28  +>
           29  +    tclsh hello.tcl --scgi 9001
           30  +
           31  +To run the application as CGI, make the hello.tcl file executable and
           32  +move it into the appropriate directory of the web server.
           33  +
           34  +Further Information
           35  +-------------------
           36  +
           37  +  *  [Introduction To Writing Wapp Applications](/doc/trunk/docs/intro.md)
           38  +  *  [Quick Reference](/doc/trunk/docs/quickref.md)
           39  +  *  [Wapp Parameters](/doc/trunk/docs/params.md)
           40  +  *  [Wapp Commands](/doc/trunk/docs/commands.md)
           41  +  *  [URL Mapping](/doc/trunk/docs/urlmapping.md)
           42  +  *  [Security Features](/doc/trunk/docs/security.md)
           43  +  *  [How To Compile wapptclsh - Or Not](/doc/trunk/docs/compiling.md)
           44  +  *  [Limitations of Wapp](/doc/trunk/docs/limitations.md)
           45  +  *  [Example Applications](/file/examples)
           46  +  *  [Real-World Uses Of Wapp](/doc/trunk/docs/usageexamples.md)
           47  +  *  [Debugging Hints](/doc/trunk/docs/debughints.md)