generate-it

Generate-it, will generate servers, clients, web-socket and anything else you can template with nunjucks from yml files (openapi/asyncapi)

Usage no npm install needed!

<script type="module">
  import generateIt from 'https://cdn.skypack.dev/generate-it';
</script>

README

Generate-It

Dependencies | Build Status

Generate-It is a tool to generate RESTful servers/clients without Java.

Generate-It is a tool to generate Event Handle layer for servers/clients without Java, eg RabbitMQ.

Change your APIs yml and simply (re)Generate-It, your business logic is safe and sound.. but the http/channel layer is regenerated in seconds.

Here is an example: generate-it is parsing an OpenAPI file using a typescript sever tpl git repo:

generate-it openapi.yml --template https://github.com/acr-lfr/acr-lfr-typescript-server.git

Here is an example: generate-it is parsing an AsyncAPI file using a typescript RabbitMQ tpl git repo which is designed to work with the TypeScript server:

generate-it asyncapi.yml --template https://github.com/acr-lfr/generate-it-asyncapi-rabbitmq.git

Full DOCUMENTATION & Examples hosted on GitHub pages.


The client/server will be generated using the Nunjucks Template engine.

The templates should be hosted on a publicly available https url, eg: generate-it-typescript-server.

It is strongly recommended to use the OpenApi DSL package boats to standardize OpenAPI/AsyncAPI file architecture and operation IDs and more.


Generate-It is an opensource project from acrontum and Liffery written in TypeScript and is tested on NodeJS 14 LTS.