Company
Date Published
Author
Matthew Gilliard
Word count
1497
Language
English
Hacker News points
None

Summary

This framework for building JVM web and serverless apps is Micronaut, which aims for fast startup and low memory overhead. It supports Java, Kotlin, and Groovy, with an eye on Scala support in the future. To send SMS with Twilio and Micronaut, one needs to set up a web app that handles Twilio's webhooks for incoming SMS, enable annotation processing, build a first Micronaut web app, modify the app to handle Twilio's SMS webhooks, buy and configure a phone number from Twilio, use ngrok or a similar tool to create public URLs for localhost servers, and deploy the app. The process involves creating a new class called SmsController to handle the incoming SMS requests, specifying an Optional<String> for the @QueryValue("name") parameter, using @Post with consumes = MediaType.APPLICATION_FORM_URLENCODED and produces = MediaType.TEXT_PLAIN, accessing the request data in a single Map<String, String>, and testing it on the command line. The app can be deployed to leave it up and running so that the SMS responder can handle messages without having to keep it running on the laptop.