1.0.0 • Published 4 years ago

mean-crud-generator v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

mean-crud-generator

Mongoose, Express, Angular e Nodejs generator with OpenAPI3 that generates the frontend and JSONSchema to generate the backend

  1. Frontend: Create your Open API 3 schema using swagger
  2. Backend: Create a JSONSchema for your data (or Generate from Open API Schema

All the endpoints, docs, mongo schemas, express and Angular CRUD components ready to use!

Live Example

Base on this Open API Schema example and this JSON Schema example , it created the backend and docs:

Run this project

Fork and clone to your computer, then do npm i.

Run npm run dev than you can see the demo project using the Pet Swagger example:

http://localhost:8080/docs

References

Links

Model

Repo example mongood jsonschem working:

Install

npm install -g swagger

TODO

  • Frontend generation with Angular (in progress)
  • Generate missing JSONSchemas based on the Open API
  • Generate missing declarations in Open API Based on JSONSchemas
  • Validation from data type based on OpenAPI Schema (help wanted)
  • Special builtin datatype validation like credit cards, phones... (help wanted)
  • Special builtin datatype with js-brasil for example (help wanted)
  • Make JSONSchemas Editable in a Admin Section (help wanted)
  • Make Open API Schemas editable in Admin Section (help wanted)
  • Frontend generation with React (future)