TwitterFacebookRSS Feed

See

Thoughts, stories and ideas.

micronaut, swagger, openapi, codegen, java, rxjava

Micronaut Code Generator from Swagger/OpenAPI spec

I'm really enjoying Micronaut [https://see.net.ph/micronaut-the-disruptive-java-framework/]. However, I do miss creating swagger/openapi specs first to document the requirements and then generating server-side stubs. Although Swagger Codegen has support for a lot of server-side stubs (spring, jaxrs, resteasy, etc) it does not have support (as of this writing) generation of micronaut server-side stubs. So, I thought I'd take a crack at it ;) Though there are several tutorials out there in te
Franz Allan See
Franz Allan See
6 min read

Accessing a database with JDBC Predator and Micronaut

Micronaut Predator [https://github.com/micronaut-projects/micronaut-predator] was just unveiled [https://objectcomputing.com/news/2019/07/18/unleashing-predator-precomputed-data-repositories] 2 days ago (July 18, 2019)  and it was very exciting. Micronaut Predator is Micronaut's version of Spring Data or Grail's GORM. In essence, it will allow you to do something like this @JdbcRepository public interface GenreRepository extends CrudRepository<Genre, Long> { @NonNull Optional<Genre
Franz Allan See
Franz Allan See
11 min read

Micronaut - The disruptive Java Framework

If you haven't head of Micronaut [https://micronaut.io/], it is basically a new jvm framework (works with Java, Groovy and Kotlin) that feels like Spring, but way faster. That's because the underlying implementation of Micronaut uses Ahead of Time compilation [https://en.wikipedia.org/wiki/Ahead-of-time_compilation] to do dependency injection, instead of Spring's reflection-based dependency injection. We went too far with Reflection Spring and Java users since back in the early 2000s already
Franz Allan See
Franz Allan See
5 min read

Building Libra in OSX

So I tried building Libra in my macbook laptop, and it was pretty straightforward. And if you encounter any issues while building it, you can search for it in the issues section of Libra's github repo. Fair warning though, running the build takes a while. So if you get bored waiting for your commands to finish, you might want to read up on its white paper - https://developers.libra.org/docs/assets/papers/the-libra-blockchain.pdf Warning #2: Libra is not really cryptocurrency in the "tradition
Franz Allan See
Franz Allan See
3 min read

Now powered by react (through gatsby)

I've just updated this site from a simple ghost app, to have gatsby as the front end and ghost in the backend. The SSL part, I use Let's Encrypt following this blog post - https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71 Initially, I had the code in the blog post above mixed with my docker-compose for this website. But then, I dont like the whole running, then changing code, then restarting, then it's final. So I just created as a subprojec
Franz Allan See
Franz Allan See
1 min read

Hello World

Hi, this is my mandatory Hello World post. I've had this domain for quite a while now but I've been mainly using it for my custom email address. Didnt actually had any reason to create a website, and dont really have any reason to do so still except that I was bored. So I created one :) I've used wordpress several times before and I'm quite familiar with it. But I thought I'd use something different this time - so I picked Ghost. I could have used Ghost(Pro) [https://ghost.org/pricing/] but I
Franz Allan See
Franz Allan See
1 min read