adowning-lbgenerator
v0.1.3
Published
Generate a CRUD application built with Vue.js from a swagger loopback API
Downloads
5
Readme
loopback-vuejs-generator
Loppback Vuejs Generator is a generator to scaffold app with Create-Retrieve-Update-Delete features for any loopback API (swagger/openAPI compatible) for Vue.js
Installation
npm install -g loopback-vuejs-generator
Usage
generate-loopback-vuejs-client http://localhost:3000/explorer/swagger.json output/ --resource <resource-name>
Features
- Generate Vue.js components and files including:
- A list view
- A creation form
- An edition form
- A deletion button
- Use the Swagger API documentation to generate the code
- Generate the suitable HTML5 input type (
number
,date
...) according to the type of the API property - Client-side validation (
required
attributes) - The generated HTML is compatible with Bootstrap and include mandatory classes
- The generated HTML code is accessible to people with disabilities (ARIA support)
Credits
Adapted from an idea of Kévin Dunglas and Les-Tilleuls.coop.