Skip to content

GiovannyRamirez/dsl-microservices-generator

Repository files navigation

Informática II

Laboratorio: Generación de Microservicio

Integrantes

  • Anjhelo Giovanny Ramírez Suárez Codigo: 20221099014
  • Daniel Ricardo Galván Torres Codigo: 20221099003

This is an example of a simple Entity DSL through python and Jinja2 This project was based on this example

You have to have installed

  • Python
  • pip
  • textX
  • Jinja2

To create a new entity, follow the next steps:

  1. Go to entidades folder.
  2. Create new file with .ent extension.
  3. File must to contain next structure:
    entity [name] {
        [attribute] : [type]
    }
    
    • Example:
    entity domiciliario {
        nombre : string
        apellido : string
        telefono : integer
        placa : string
    }
    
  4. Save your file.

Run with python main.py

As a result of the script generates a structure into proyecto_generado folder with next files and folders:

  1. Main files of project:
    • README.md.
    • nginx.conf
    • docker-compose.yml
    • folder_generados
  2. A folder for every entity in entidades folder with the next files:
    • app.py
    • config_app.py
    • models.py
    • Dockerfile
    • requerimientos.txt
    • archivos_generados

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages