Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sample Code #2

Closed
Stoeoeoe opened this issue Feb 2, 2018 · 2 comments
Closed

Add Sample Code #2

Stoeoeoe opened this issue Feb 2, 2018 · 2 comments

Comments

@Stoeoeoe
Copy link

Stoeoeoe commented Feb 2, 2018

Often, when creating a new project, it would be helpful to be provided with some boilerplate code, specifically:

  • A class CustomConfiguration serving as a Spring Configuration under com.edorasware.config.custom
  • A simple REST endpoint DemoController with a GET and POST RequestMapping under com.example.demo.rest which yield a simple ImmutableMap/JSON.
  • A class DemoRestConfiguration under com.example.demo.config with a default @ComponentScan on com.example.demo.rest
  • A class CustomDispatcherConfiguration under com.edorasware.rest which Imports the DemoRestConfiguration possibly along with required Addon DispatcherConfigurations
  • A folder webapp along with a custom.css file containing some basic customizations (ideally a custom logo), an accounts.css as well as a custom.js containing a simple service. Additionally, a folder WEB-INF containing a bare-bone web.xml file should be generated.
  • A palette configuration demo.process.palette.xml under com.edorasware.vis.palette containing a component-presentation which references a demo picture as well as a group and a simple custom service task component. The expression could be really simple as well and merely demonstrate the concepts.

Since there already is a flag "Generate Sample Code", I'd suggest that above files are only included if the flag is ticked.

@rvillars
Copy link

I generally agree. Some minor counterproposals:

@rvillars
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants