asyncio + anonymous functions + the best language ever.
import '/dogeweb'
import '/dogeweb/r'
import '/dogeweb/property' # allows to use `~> @stuff` instead of `req -> req.stuff`
app = dogeweb.app $ r.path
'/', ~> 'Hello, World!'
See this example for something slightly more complex.
import dg
import dogeweb
root = dogeweb.r.path()
@root.route('/')
def hello(request):
return 'Hello, World!'
app = dogeweb.app(root)
app.run '0.0.0.0' 8000 # dg
app.run('0.0.0.0', 8000) # python
gunicorn -k dogeweb.gunicorn.Worker helloworld:app