Basic runtime template implementation
This commit is contained in:
4
runtimes/crystal/README.md
Normal file
4
runtimes/crystal/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# README
|
||||
|
||||
This is the readme for people wanting to change this runtime,
|
||||
not for people trying to use it
|
11
runtimes/crystal/template/README.md.j2
Normal file
11
runtimes/crystal/template/README.md.j2
Normal file
@ -0,0 +1,11 @@
|
||||
# Readme for {{name | title}}
|
||||
|
||||
This is a funko using the Crystal runtime for [FaaSO](https://git.ralsina.me/ralsina/faaso)
|
||||
|
||||
## What is {{name | title}}
|
||||
|
||||
Write here what it is
|
||||
|
||||
## How to use {{name | title}}
|
||||
|
||||
And so on.
|
16
runtimes/crystal/template/funko.cr
Normal file
16
runtimes/crystal/template/funko.cr
Normal file
@ -0,0 +1,16 @@
|
||||
require "kemal"
|
||||
|
||||
# This is a kemal app, you can add handlers, middleware, etc.
|
||||
|
||||
# A basic hello world get endpoint
|
||||
get "/" do
|
||||
"Hello World Crystal!"
|
||||
end
|
||||
|
||||
# The `/ping/` endpoint is configured in the container as a healthcheck
|
||||
# You can make it better by checking that your database is responding
|
||||
# or whatever checks you think are important
|
||||
#
|
||||
get "/ping/" do
|
||||
"OK"
|
||||
end
|
2
runtimes/crystal/template/funko.yml
Normal file
2
runtimes/crystal/template/funko.yml
Normal file
@ -0,0 +1,2 @@
|
||||
name: hello
|
||||
runtime: crystal
|
Reference in New Issue
Block a user