CategoryCode Generation

Generate Code Against a Sequelize Model with Monstarillo

G

Objective In this post you will learn how to generate code against a sequelize model with Monstarillo. We will generate some documentation on the model in markdown format. Requirements To follow along you will need: A models.json file describing your sequelize model. You can generate this file following Export Sequelize Model Data For Use With Monstarillo. I will also provide a sample file...

Use Code Generation To Advance Your Career

U

Opening Story: This post will detail one example of how I have used code generation to advance my career. While working for a large government contractor the team was looking for a software solution for tracking server configurations. We wanted to know what what applications were installed on the servers and what versions of the applications were installed. We also wanted information on some...

How to Create Monstarillo Templates From Existing Code

H

Introduction In this post I will demonstrate how to create Monstarillo templates that generates code you like. I will show you how I take existing working code, a RESTFUL API using Node.js Express and Sequelize against a Postgres database and create monstarillo templates that will work against any sequelize model.. The code for this simple API can be found at . The API runs against the Chinhook...

Export Sequelize Model Data For Use With Monstarillo

E

In this tutorial you will learn how to export Sequelize model data for use with Monstarillo. You will then be able to use this exported data to generate code for your applications. In this tutorial I will create a simple sequelize model for the Postgres sample chinhook database using sequelize-auto. After creating the model I will write some Javascript code to export the model data into a json...

Generate a Rest API Using Go for a MySql Database

G

This tutorial will show you how you can generate a rest API using a Mysql database with monstarillo. The generated API will use Go, Gorm and Gin. The API will perform CRUD operations on the tables you run it against. What is Monstarillo Monstarillo is a template based code generator that works against Postgres, MySQL and Oracle databases. How it works  Monstarillo runs templates that are...

Generate a REST API Using Java for a MYSQL database

G

This tutorial will show you how you can generate a rest API using Java for a Mysql database using monstarillo. The generated API will use Spring Boot and Springdoc to document it. The API will perform CRUD operations on the tables you run it against. Unit tests will also be generated for the API. What is Monstarillo Monstarillo is a template based code generator that works against Postgres, MySQL...

Generate a Rest API Using Go For a Postgres Database

G

This tutorial will show you how you can generate a rest API using Go for your Postgres database using monstarillo. The API will use Go, Gorm and Gin. The API will perform CRUD operations on the tables you run it against. What is Monstarillo Monstarillo is a template based code generator that works against Postgres, MySQL and Oracle. How it works  Monstarillo runs templates that are executed...

Generate a REST API Using Java for a Postgres database

G

This tutorial will show you how you can generate a rest API using Java for a Postgres database using monstarillo. The API will use Spring Boot and Springdoc to document it. The API will perform CRUD operations on the tables you run it against. Unit tests will also be generated for the API. What is Monstarillo Monstarillo is a template based code generator that works against Postgres, MySQL and...

Generate Database Documentation Using Monstarillo

G

In this tutorial we will generate database documentation using Monstarillo. We will create a create and run a template that will generate simple database documentation for a Postgres database will will spin up in Docker. The documentation will include basic information about the table’s columns and foreign key information. To follow along with this tutorial you will need Docker or access to...

How To Install Monstarillo

H

In this tutorial you will learn how to install monstarillo. Monstarillo is a template based code generator that works against Postgres, MySQL and Oracle. How it works  Monstarillo runs templates that are executed by golang’s text template. The templates to run are identified in a json file. At a high level this file will identify the templates to execute, and where to put the output of...

Patrick Wright

Get in touch