Skip to content

bobbyahines/SequelizerModelMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SequelizerModelMaker (MySQL)

Quick Start

Edit the included make.sh bash script's db variables to reflect your mysql db's host, port, name, user, and password, then run the script from shell: ./make.sh

Manual Build

1. Build the Dockerfile

docker build -f Dockerfile -t bobbyahines/modelmaker:latest .

2. Start the application

docker run -it --rm --name modelmaker -v $PWD:/srv bobbyahines/modelmaker:latest bash

3. Generate Models

From inside the container, run this command while substituting the variables:

sequelize-auto --host $db_host /
               --port $db_port /
               --database $db_name /
               --user $db_user /
               --pass $db_pass /
               --dialect mysql /
               --output ./Models /
               --camel

4. Generate TypeScript Models

From inside the container, run this command while substituting the variables:

sequelize-auto --host $db_host /
               --port $db_port /
               --database $db_name /
               --user $db_user /
               --pass $db_pass /
               --dialect mysql /
               --output ./TypeScriptModels /
               --camel /
               -z

About

A dockerized version of Auto-Sequelizer for easy Mysql Model generation from an extant DB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published