-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Blazor as front #165
Comments
@jdubois, @deepu105 , @pascalgrimaud . I Have work on sample application using Blazor ( an .net framework for create front app with web assembly). I'll soon have the minimum functions for create generator. But what is better, add this options in this blueprint or create an other blueprint juste for the Blazor front ? |
Separate blueprint will be better IMO |
Yes, but there are certain logics that can be shared such as the C# naming convention, solution management, etc. If I create a new blueprint , maybe this logic can be extracted in another package like jhipster core ? |
I would propose to generate Blazor front in the current dotnet blueprint.
My guess is that only .Net devs will use Blazor. I can't imagine a Java
server with a .Net front, it does not feel natural...
So stick to the easiest solution, propose Blazor with the current blueprint
and later on, if it make sense to split it then we would have facts to
justify it.
Le dim. 3 mai 2020 à 09:59, nicolas63 <[email protected]> a écrit :
… Yes, but there are certain logics that can be shared such as the C# naming
convention, solution management, etc. If I create a new blueprint , maybe
this logic can be extracted in another package like jhipster core ?
One of the advantages of using .net on both the client and server side is
the ability to share code.
Does it make sense to create another blueprint if I want to share code on
the generated application ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#165 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEQ5HBVQEOFFBERT7UMH33RPUP65ANCNFSM4MQVB55Q>
.
|
Okay, I think that's a good solution. Thank you @danielpetisme |
If you do it in this blueprint you need to do dome work around to propose
react/angular options without overriding the entire front end prompts
…On Sun, 3 May 2020, 10:56 am nicolas63, ***@***.***> wrote:
Okay, I think that's a good solution. Thank you @danielpetisme
<https://github.com/danielpetisme>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#165 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIOKF67N5ABKMMRTBQME23RPUWVPANCNFSM4MQVB55Q>
.
|
yes it is possible ? |
hello @mraible, |
Can you provide the steps to create an app with this feature to test it? |
Yes, you can use main branch to test it First you must install Run the generation and choose Blazor for the front or use this:
You can also add entities like
Now you can run the application For the front cd When the application is running go on https://localhost:4901 Your have now a front with blazor webassembly 😃 |
You can also run UT from root folder with |
@nicolas63 I'm a n00b when it comes to .NET and this blueprint. :) I installed the .NET SDK using Homebrew:
I was able to generate an app OK using a
However, when I create an
The
On the upside,
|
Oh yes ! It's my bad i have forgot to not launch webpack build here (https://github.com/jhipster/jhipster-dotnetcore/blob/main/generators/entity-client/index.js#L50) |
@mraible have you retry ? |
I tried again today. The first thing I noticed is several warnings (I have JHipster v6.10.5 installed).
I ran the tests as the blueprint suggested:
This resulted in a couple errors:
Next, I ran it as instructed:
This seemed to work, but when I try to access {
"type": "https://httpstatuses.com/404",
"title": "Not Found",
"status": 404,
"traceId": "00-7bdbaac525b2b941bbb82d8dd9b24e8f-d6b6041561298946-00"
} The server logs indicate it might be from a missing
|
This is strange i will investigate
Have you installed Libman and WebCompiler ?
This part run only the server part i will add instruction for client part For the front you also need to run |
I was not aware that I needed to install Libman and WebCompiler. Will .NET developers know to do this? I have no idea since this is one of the first times I've tried to run a .NET app. 😉 After installing them,
I tried to run the command you suggested for the front, but it doesn't work.
My
I dug into the
This results in some errors and it does not start.
I think it's confusing that you have to start a frontend and a backend. Maybe .NET developers expect this? I'm sure you know this, but with the main (Java) generator, we start both the frontend and backend with a single command, then allow developers to run the frontend separately if they want to. |
Yes i think Libman replace npm for depencies like bootstrap and Webcompiler replace webpack for build minify css. For build error can you share generated code ? There is something wrong in generated app
Yes, we have also this when we run dotnet with angular or react, with blazor i have no way to do this or maybe with a script. |
yes sorry i forgot |
Yes, I'm on the main branch and using I did not import the entities yet. |
I have find ! |
My app is in a
Now, when I run the tests, I get even more errors:
Running the backend with Running the frontend with
I'm starting to think I'm not the best person to test this since I'm not a .NET developer. |
If you have the time you are totally the right person anyone should be able to generate an application For your error is my bad i have use namespace variable rather than baseName to reference other project. I need to fix it. |
If I use
Now the backend, frontend, and authentication works! I then tried importing the entities with
|
Warnings is cause by synchronous code in async inherited method. I'm going to review this, but I don't think I could change this behavior. Can you give me your entities.jdl ? it contains only entities ? Can you try with import-jdl ? |
My entities is the same as yours above. The reason it wasn't working is that I was using the This command now works:
|
bounty claimed => https://opencollective.com/generator-jhipster/expenses/37062 |
Give the possibility to choose blazor for the frontend framework with this we can have full stack .NET
The first goal is to have a sample app with login and entities pages
If you are interested : https://github.com/nicolas63/JhipsterBlazor
The text was updated successfully, but these errors were encountered: