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
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...
Code Generation Demystified: Your Secret Weapon for Productivity
Introduction In the fast-paced world of software development, efficiency is everything. Developers constantly seek ways to write cleaner, faster, and more maintainable code—without compromising quality. Enter code generation, a powerful yet often overlooked tool that can supercharge productivity by automating repetitive coding tasks, reducing human error, and enforcing best practices. Code...
Export Sequelize Model Data For Use With Monstarillo
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
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 Database Documentation Using Monstarillo
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...