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
docker build -f Dockerfile -t bobbyahines/modelmaker:latest .
docker run -it --rm --name modelmaker -v $PWD:/srv bobbyahines/modelmaker:latest bash
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
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