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

Best practice CAP - UI and Services as separate projects #22

Open
alisdair73 opened this issue Jul 15, 2020 · 1 comment
Open

Best practice CAP - UI and Services as separate projects #22

alisdair73 opened this issue Jul 15, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@alisdair73
Copy link

Hi Tom/Rich

Love the Repo - thanks for making this available early.

I've been trying to work out the best way to break up a CAP project into a services project srv/db, and then have the UI (or multiple) as independent UI projects. What I think I want is the UI Annotations in the UI Project and not with the services - keeping the concerns separated - maybe this isn't right or not possible? . I'm just not entirely clear on how to set up the dependencies so the annotations can see the services at design time. I've seen the mono repo that the CAP examples are in and can see how that works - is this best practice or are there other ways??

I kind of see this as a natural separation between the CAP tooling and the UI5 Tooling so the UI5 team are doing "ui5 serve" etc rather than cds watch/serve etc..?
Thoughts?

Thanks guys
Al

@jung-thomas jung-thomas self-assigned this Jul 15, 2020
@jung-thomas jung-thomas added this to To do in Adoption of Community Suggestions via automation Jul 15, 2020
@jung-thomas
Copy link
Contributor

Interesting suggestion. I don't know if its one we can/want to directly adapt in to the source code sample itself. We always walk a fine line with code sample of trying to provide best practice project structuring but also trying to be realistic about consumption from an educational standpoint. Those two things don't always align well.

But its a topic worth of research and some discussion. Maybe a future panel discussion to talk about very viewpoints and pros/cons of approaches. I know my personal viewpoint is often colored by internal SAP team setups where everything is often done within a single team. But I've also worked on a project with outsourced UI and we still followed a mono repo approach to great success. But I'm sure others in the community would have different ideas as well.

I'll slot this into the backlog and we will focus on some of the fundamentals of the code sample first but there is still some great ideas here for further discussions on the live streams or community calls a few weeks or so down the road.

Thanks,

@jung-thomas jung-thomas added the enhancement New feature or request label Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants