GithubHelp home page GithubHelp logo

caelum / vraptor-scaffold Goto Github PK

View Code? Open in Web Editor NEW
55.0 13.0 22.0 3.06 MB

VRaptor Scaffold extension to make it easier configuring new projects and plugins

Home Page: http://vraptor.org

License: MIT License

Java 8.07% Ruby 87.55% Groovy 4.39%

vraptor-scaffold's Introduction

VRaptor Scaffold

VRaptor Scaffold extension to make it easier configuring new projects and plugins.

Documentation

Vraptor Scaffold website can be found at http://vraptor.org
RDocs can be found at http://rdoc.info

Installation

gem install vraptor-scaffold

Getting Started

At the command line client:

vraptor new myapp
cd myapp
vraptor scaffold product name:string value:double
ant jetty.run

open http://localhost:8080/products

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don’t break it in a
    future version unintentionally.
  • Commit, do not mess with rakefile, version, or history.
    (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Author

Vraptor Scaffold was created and is maintained by Rodolfo Liviero.

Contributors

  • Adriano Almeida
  • Arthur Moura Carvalho
  • Edgar Latorre
  • Felipe Fontoura
  • Guilherme Silveira
  • José Guilherme Camara Ribeiro
  • Laécio Freitas
  • Lucas Cavalcanti
  • Luiz Fernando Signorelli
  • Toshi Kurauchi
  • Washington Botelho

vraptor-scaffold's People

Contributors

adrianoalmeida7 avatar armoucar avatar guilhermesilveira avatar joseribeiro avatar laeciofreitas avatar latorre avatar lucascs avatar luizsignorelli avatar rodolfoliviero avatar toshikurauchi avatar wbotelhos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vraptor-scaffold's Issues

decorators folder

put decorators folder inside WEB-INF/views to freemarker and WEB-INF/jsp tojsp templates.

remove hibernate repositories

hibernate stable version can be found in central maven repository so we dont need the to configure hibernate repository in pom, ivy.xml and build.gradle

scaffolding something with uppercase

when doing a scaffold Item (with uppercase i)

the generated controller generates de following method:

public Item show(Item Item) {...}

Note that the parameter name has an uppercase i also. this should be lowercase.

Customizing Generators

In vraptor-scaffold, generators don’t just look in the source root for templates, should also search for templates in other paths.

activesupport 3.0.3

new version of activesupport break new installation.

error log:

You don't have i18n installed in your application. Please add it to your Gemfile and run bundle install

migrate a vraptor project to support scaffold commands

create a command "vraptor init" that should migrate a vraptor project to support scaffold commands.
When done?

  • create vraptor-scaffold.properties
  • move models, controllers and repositories folders.
  • verify if all dependencies there are in classpath. (like hibernate).
  • create abstract repository and model.
  • create ivy.xml and copy ivy.jar if there are build.xml.
  • how to fix the imports? refactoring some folders will brake imports.

hibernate session in repository

add option to create repository with hibernate session instead of Entity Manager.
Dont forget to change model annotations to org.hibernate package instead of javax. persistence

return default values

return default values when config was not found to maintain backward compatibility

Jetty run tests task

Create a directory structure for end-to-end tests. Create a task that runs all tests without starting a jetty. Create a task that runs all tests after strting jetty.

Ant and Jetty (hot deploy)

When I create a vraptor project with ant, it don't redeploy/reload automaticaly in jetty when I execute compile and war task.

I used 1.1.0 version.

Thanks

update jquery

jquery has a new version. so we need to update it.

better index.jsp

change index.jsp and put some useful information about the frameworks we are using and their versions.

more databases support

create a option to use anothers databases like mysql, mariaDB, postgresql
the command should be something like this
vraptor new app -ds=mysql

When done?
add respective jdbc driver on classpath and change the jdbc url in persistence.xml

install plugin

vraptor plugin install pluginName should install the plugin

add jsp api

add jsp-api as provided scope to prevente IDE erros.

scaffold models with compound Names

scaffold models with compound names generated wrong class name.
vraptor scaffold atividadeItem fooBar:string generated the following output.

create src/main/java/app/controllers/AtividadeitemController.java
create src/test/java/app/controllers/AtividadeitemControllerTest.java
create src/main/java/app/models/Atividadeitem.java
create src/test/java/app/models/AtividadeitemTest.java
create src/main/java/app/repositories/AtividadeitemRepository.java
create src/main/java/app/repositories/AtividadeitemRepositoryImpl.java
create src/test/java/app/repositories/AtividadeitemRepositoryImplTest.java
create src/main/webapp/WEB-INF/jsp/atividadeItem/index.jsp
create src/main/webapp/WEB-INF/jsp/atividadeItem/show.jsp
create src/main/webapp/WEB-INF/jsp/atividadeItem/form.jsp
create src/main/webapp/WEB-INF/jsp/atividadeItem/edit.jsp
create src/main/webapp/WEB-INF/jsp/atividadeItem/newAtividadeitem.jsp

Another bug is that getter and setter methods is wrong. fooBar generates
setFoobar and getFoobar

rails -h

Give help on vraptor scaffold

getter method to boolean attribute

scaffolding a model with boolean attribute generate a getter like this
public boolean getActive() {...}

boolean getter should be generated like this

public boolean isActive() {...}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.