Allow users choices for starter code

Open
#168 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
html
Domain
frontend, web-dev

Research direction

Start by locating the Starter UI implementation and reviewing the linked minimal-starter and rest-starter examples. Define the initial choice flow for the three application types, including the specified generated features and tests where applicable. Done means the UI presents those choices and produces the corresponding starter applications.

Written by the indexing model from the issue text.

Description

enhancement normal-priority

The Basics

The Starter UI will provide the user a set of sensible choices for the generated starter code. The initial set of choices will be as following:

Please choose the type of application*:

(*) Simple RESTful service ❶ ( ) REStful CRUD service ➋ ( ) CRUD web application ❸

❶ The default option. Simply generates a RESTful endpoint that prints {“hello”:”world”} in application/json format. Pretty much just Jakarta REST and JSON. No tests included. See here for reference (pretty much already done): https://github.com/m-reza-rahman/starter/tree/master/minimal-starter.

➋ Generates CRUD REST service with just one simple Entity. Shows sample usage of Jakarta REST, JSON, CDI, Persistence, Transactions/Enterprise Beans and Validation. An embedded database is used for convenience (ideally the default one already included in the runtime). A helpful sample test included. See here for reference (pretty much already done): https://github.com/m-reza-rahman/starter/tree/master/rest-starter.

❸ Generates CRUD Faces web application with just one table/screen and one simple entity. No REST endpoint is included. Shows sample usage of Jakarta Faces, CDI, Persistence, Transactions/Enterprise Beans and Validation. An embedded database is used for convenience (ideally the default one already included in the runtime). A helpful sample test included.

The Next Step

After this initial version is completed, the Starter UI may provide other options to further customize the starter code as follows:

Please choose the type of application:* ❶

(*) RESTful service ➋ ( ) web application ❸ 

Please choose features to include:

[ ] Persistence ❹ [ ] Validation ❺ [ ] Test ➏

❶ User must choose either a REST or Faces web interface for the generated application. The choices are radio buttons.
➋ If Persistence is not selected, simply generates a RESTful endpoint that prints {“hello”:”world”} in application/json format. If Persistence is selected, generates CRUD REST service with just one simple Entity. Shows sample usage of Jakarta REST, JSON, CDI, Persistence and Transactions/Enterprise Beans. An embedded database is used for convenience (ideally the default one already included in the runtime).
❸ If Persistence is not selected, simply generates a basic page that prints “Hello World from Jakarta EE”. If Persistence is selected, generates CRUD Faces web application with just one table/screen and one simple entity. No REST endpoint is included. Shows sample usage of Jakarta Faces, CDI, Persistence and Transactions/Enterprise Beans. An embedded database is used for convenience (ideally the default one already included in the runtime).
❹ Determines if the sample code should be “hello world” or CRUD.
❺ Only activated if Persistence is selected. Otherwise grayed out. If selected, add validation to Entity as well as REST endpoint or Faces backing bean.
➏ If selected, include a helpful sample test.

Later on

Further in the future, more use cases/technologies may be added as options:

[ ] Security [ ] Messaging [ ] Mail [ ] Batch [ ] WebSocket

Dominant language
HTML
Stars
61
Forks
51
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-ee4j/starter

All issues in eclipse-ee4j/starter

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.