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 Postgres Database
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...
Set up the Chinhook Sample Postgres Database in Docker
Build Docker Image In this tutorial we will set up the chinhook sample database in a docker container. To follow along with this tutorial you will need to have Docker installed, Git and some way to access the database. The first step will be to build the docker image we will be using to stand up Postgres. To begin clone the repo . Open a command prompt and cd to the chinhook-db folder in the reop...
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...