Skip to content

BoukeNijhuis/stackit-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STACKIT Functions - SpringBoot Function Template

This template provides a basic structure for developing serverless functions using SpringBoot for STACKIT Functions.

Project Structure

  • src/main/java/functions/CloudFunctionApplication.java: This is the main entry point for your function.
  • stackit-functions.yaml: Manifest file for STACKIT Functions. Contains environment settings and other configured data.

Server Wrapper and Exposed Routes

This template is designed to work with a server wrapper that facilitates HTTP request handling.

By default the template exports the following route:

  • GET /: The default HTTP handler for your function. In this template, it responds with Hello from STACKIT Functions.

Other requests will return a 404 response.

Local Development

We highly recommend using the STACKIT Functions CLI in development.

To build this function:

sfn function build --image IMAGE_NAME

Run the function locally:

sfn function run

This command will start a local server, making your function accessible for testing at http://localhost:8080 (or another port if configured).

Function Deployment

Deploy your function to STACKIT Functions by using the following command:

sfn function deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages