US Congress Stock Trading API examples & templates
Use these vals as a playground to view and fork US Congress Stock Trading API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
taras
serve_ssl
Script
This is a library to use via esm with deno cli. Self-signed HTTPS development server with auto-generated SSL certificates.
This is an ssl equivalent to "deno serve" until Deno upstream enables ssl via cli. USAGE:
deno run --unstable-net --watch -A https://esm.town/v/taras/serve_ssl [OPTIONS]
OPTIONS:
-h, --help Show this help message
--port <NUMBER> Port to listen on (default: 443)
--handler <PATH> Path to handler module (default: "./main.ts")
EXAMPLES:
# Run with defaults (port 443, main.ts handler)
deno run --unstable-net --watch -A https://esm.town/v/taras/serve_ssl
# Run on port 8443 with custom handler
deno run --unstable-net --watch -A https://esm.town/v/taras/serve_ssl --port 8443 --handler "file://$PWD/custom.ts"
0
rozek
GDI_AITranslator
HTTP
This val is part of a series of examples to introduce "val.town" in my computer science course at
Stuttgart University of Applied Sciences . The idea is to motivate even first-semester students not to wait but to put their
ideas into practice from the very beginning and implement web apps with
frontend and backend. It contains a simple web page which allows users to enter some german (or other
non-english) text and send it to a preconfigured server. That server translates
the text with the help of OpenAI and sends the result back to this app where it
is finally presented to the user. This val is the companion of https://rozek-gdi_aitranslatorservice.web.val.run/ which contains the server part (aka "backend") for this example. The code was created using Townie - with only a few small manual corrections. This val is licensed under the MIT License.
0