Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

tarilabs/openapi-as-reactforms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived in favour of SmallRye io.smallrye:smallrye-open-api-ui-forms see https://github.com/smallrye/smallrye-open-api/tree/master/ui/open-api-ui-forms


A generic bundled spa in React, which introspects Swagger OpenAPI definitions file, to build automatically html forms (bootstrap4) for POST endpoints exchanging JSON

GOALs:

  • build automatically an html form, by introspecting Swagger OpenAPI definitions file
  • the introspection works at runtime, not at npm build time

non-GOALS:

  • not a "low-code" app generator

DEMO

Watch the video on YouTube:

Watch the video

Building and running on localhost

First install dependencies:

npm install

To create a production build:

npm run build-prod

To create a development build:

npm run build-dev

Running

Open the file dist/index.html in your browser

Deploying on Quarkus:

Add to Quarkus app pom.xml this project and webjars-locator dependencies:

<dependency>
    <groupId>org.kie</groupId>
    <artifactId>openapi-as-reactforms</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-webjars-locator</artifactId>
</dependency>

Can now navigate to http://localhost:8080/webjars/openapi-as-reactforms/index.html.

About

Archived in favour of SmallRye io.smallrye:smallrye-open-api-ui-forms see https://github.com/smallrye/smallrye-open-api/tree/master/ui/open-api-ui-forms

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •