This is a sample applicaiton to showcase the use of Spring Cloud Function on top of Azure Functions.
This is just a "Hello, world", but it uses domain objects so it's easy to extend to do something more complex.
This project uses the Maven Wrapper, so all you need is Java installed.
- Clone the project:
git clone https://github.com/hagaic/hello-spring-function-azure.git
- Build the project:
./mvnw clean package
Once the application is built, you can run it locally using the Azure Function Maven plug-in:
./mvnw azure-functions:run
And you can test it using a cURL command:
curl http://localhost:7071/api/hello -d "{\"name\":\"Azure\"}"
Deploying the application on Azure Function with the Azure Function Maven plug-in:
./mvnw azure-functions:deploy