jhipster / jhipster-net-sample-app-template

JHipster.NET sample application
50 stars 18 forks source link

Validate Namespace organisation #8

Closed danielpetisme closed 5 years ago

danielpetisme commented 5 years ago

Currently the namespaces are inspired by the Java packages names of JHipster. The namespace organization and naming should follow the .Net convention and culture.

kbeaugrand commented 5 years ago

Hi Daniel,

I had fork this repository and working on the namespaces from web part. I'll do a PR as soon as possible.

Regards,

jdubois commented 5 years ago

OSS is awesome, this is so cool that JHipster.NET takes off so quickly.

danielpetisme commented 5 years ago

Local lobbying ;-)

Le jeu. 14 févr. 2019 à 20:05, Julien Dubois notifications@github.com a écrit :

OSS is awesome, this is so cool that JHipster.NET takes off so quickly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jhipster/jhipster-net-sample-app-template/issues/8#issuecomment-463751423, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkOnH3KboXfbN48pQri_hEQ1VkYxZulks5vNbN-gaJpZM4ax2QO .

danielpetisme commented 5 years ago

I propose to track the application structure choices here: The purpose of JHipsterNet is to serve small/Medium applications. So far, from what I have understood:

The points not clear

@kbeaugrand @Authfix I need your help here!

Authfix commented 5 years ago

In Asp.net core, everything is a Controller. There is no more distinction (via inheritance or attribute) between an "Api" controller or a "Mvc" controller. Today, I try to have a project Api-oriented (without view engine) and/or Mvc-oriented (with view engine) but not both.

By default, namespaces correspond to the Assembly name plus the folder hierarchy.

That said :

Now, regarding JHipster.NET goals, I think usage of areas will add a complexity that is not necessary, especially in an Api-oriented context with Angular/React clients.

So there is no room in an API-oriented application for ViewModels. But there is a shiny place for ViewModels in an MVC-oriented application (with views like razor pages).

My 2 cts ;)

danielpetisme commented 5 years ago

@Authfix Thanks! So, to start no Areas and everything is a Controller :heavy_check_mark: In my first prototype I just mimic the Java jhipster structure view ViewModel. I would be interested to have @jdubois vision on that point.