-
Notifications
You must be signed in to change notification settings - Fork 302
integrate oasp4js with oasp4j #214
Comments
Regarding the location of the client, in many projects we have 2 distinct clients, one optimized for mobile devices, and another client for a desktop-like experience, or in the future, having 2 clients, one Angular and another done in ExtJS I fear that simply defining a single directory for the JS-client could be quite limiting. Maybe we should explore other possibilities of defining the location of a series of clients. Do I understand correctly that the goal of this integration is to be able to use cobigen to generate client-artifacts, too? |
good point we should consider this and give it a more specific path/folder. |
Maybe we should use a "standarized" way to organize the client. I know 2 base package in maven projects: Based on this alternatives, I think the best way is to create a specific project/module for each client side application (mobile and/or desktop) and use the default path for Web Applications (src/main/webapp) to easy integrate with web servers in the IDE. @hohwille is this way aligned with you? Do you have another thing in mind? If this is all right for you, maybe I can solve this issue. |
Thanks for your suggestions, however my concerns:
|
I was thinking about further separation instead of just
So still my suggestion is to use one folder. If you prefer |
Ok, knowing your concerns and your points of view, I will work to solve them. |
since we haven't found something better than current use of the -Pjsclient profile with maven, should we close this issue or do you think it still valid to develop on the idea of having server and client on the same project? If we propose not to use eclipse for javascript development maybe it is easier to just use the reverse proxy or CORS support for development of the client. |
Independent of the IDE discussion we need a standard layout as otherwise we can not do code-generation from java to JS/TS properly. Also I want to have an additional archetype that instantiates server+client in one goal and simplifies the process (there can also be the same for other clients than oasp4js if you know what I am talking about). So I would still keep this open. We are just in the process of full-stack generations but currently struggle with new challenges such as JS/TS code merging. However, if there is no other proposal we can simply stick to my above suggestion. |
Maybe I misunderstood your implications of using git sub-modules. It can be fine with OASP but since not everyone uses git we should explore other ways. For example you can have a |
Seems so. In OASP we have two separate repos oasp4j and oasp4js. If we want to have a sample that you just checkout and that works with client+server OOTB git submodules are our solution for this problem in OASP. |
Ok I get that, but how do you plan to have an archetype that mixes on a generic way the server+client code? Do you propose an archetype for every combination of server+client type ? |
I have committed this as a feature branch. Can someone have a look? You need to clone with |
Worked for me like a charm both on command-line (mvn) as well as in IDE (Eclipse). |
how exactly do you clone? I've done
but see nothing on the I had to do:
in order to retrieve the code for the client then, issuing
fails trying to execute |
Installation went OK on windows. But couldn't clone recursive as stated above. |
Will we propose this solution as the recommended approach for projects? If so, I am not too convinced by it. Git submodules would tie projects to using git, and add a layer of complexity (having to remember to update the submodule in the server project, for example). I have the feeling that we are searching for a solution due to the split of the repo into the client and server parts (oasp4js and oasp4j), but I do not think that this would be a problem in the majority of real engagements. In engagements, I think we would have 2 situations:
|
Currently hoplessly out of time but the submodule is broken after the refactoring (#363) |
Why was this closed? Current state is even that the build of client+server is most likely broken. |
We should also evaluate one of these: Then our build would be entirely portable and not rely on oasp4j-ide (what will not be present in travis or jenkins) |
There is an unnecessary call of |
tsd install removed from jsclient profile #214
The sample app is pretty much dead. MTS is going for an isolated and separated build. |
We need to integrate oasp4js into oasp4j and for the sample client as well as for the archetype template (or offer two variants).
oasp4j-sample-server/src/main/client
).The text was updated successfully, but these errors were encountered: