VertxGo (aka 'Vertigo' or 'Vert.x Go!') is a CRUD Scaffolding Vert.x Module. Just provide a model in JSON, launch the mod and a complete Vertx CRUD (Create Read Update Delete) application will be created and ready to be deployed !
- Create a new folder, i.e :
mkdir Todo
- Inside this folder, create a folder
mods
:
cd Todo
mkdir mods
- Copy the VertxGo module inside the
mods
folder (you can do it by cloning the repo) Now we have to provide a model, the convention is that the model resides in a foldermodel
and namedmodel.json
, i.eTodo/model/model.json
:
{"Task":
{
"description":"string"
}
}
-
Ok ! It's time to scaffold ! Run the mod :
vertx runmod vertxgo
-
You are done ! Make sure you have a
MongoDb
instance running and run your Appvertx run app.js
-
You can create, update and delete tasks
This module has been inspired by the vert.x official Tutorial. The generated app is based on BackBone
and Twitter Bootstrap
.
In the future, it will also be possible to switch to angular
templates.
The module itself has been written in Groovy
and uses Groovy's SimpleTemplateEngine
.
This is a very first version and comes with a lot of limitations (but enough features to impress your friends) :
- Limited to one entity
- Support only text input widgets (only String is supported)
- New input types (Date,Select,Radio ...)
- Multiple entities
- one-to-one relations
- one-to-many relations
- security scaffolding