dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.19k stars 9.93k forks source link

Fetch Data sample code? #16475

Closed p10tyr closed 4 years ago

p10tyr commented 6 years ago

I have been looking at

https://blazor-demo.github.io/FetchData

But I cannot find the source code for that page anywhere. I wanted to see how the table was generated as it doesnt look like its using any "jquery" plugins...

Would really be beneficail in how the AJAX is done and how the table is renderd?

p10tyr commented 6 years ago

I actually found it by crawling other sites. Seems like there are allot of forks and stand alone projects.

https://github.com/aspnet/Blazor-Hackathon

This one contains a Visual Studio Extension to which allow you to create a new Blazor project which uses the hackathon "template" of the site I have linked to.

The template includes nuget packages for the Compiler and Runtime too..? Are those part of THIS project or THAT project?

I may probably be a good idea to include the github link (on this site), next to, or in the hsoted app itself for others to find.

grahamehorner commented 6 years ago

@ppumkin this hackathon project is superseded by this project, and while the functionality may seem greater this was an unofficial experiment base of @SteveSandersonMS idea and proof of concept. This repo is now an official experiment by the Microsoft teams so in short they have been given permission to research and develop upon the results of the hackathon and therefore have access to more resources etc.

I believe @SteveSandersonMS other have stated that NuGet packages and templating will be coming

p10tyr commented 6 years ago

@grahamehorner OK - Thanks for claryfying that.

The readme on the top links to that demo.

You can also try out a simple live Blazor app.

Probably needs clarification that, that is a hackathon proof of concept and not part of this new official project.

I did find the source and I was just interested how the data was fetched and how the table was built.

I get this is a very experimental project and allot of you guys are deep inside code and understand the whole history.. but me as a newbie comming out from under a rock needs a bit back story as I got a bit confused.

Plus those nuget packages have been updated recently but no, I could not build that hackthon project because it is targeting a preview version of dotnet core.. and i am not going to install it to get it going.

Having that get data in the standalone app would be quite helpful. I know there is now, yet another repo for this enterprise example app but nothing interesting has happened there yet.

Can I help to udpate the readme possibly? If I can get that fetchdata going could I PR that? I am quite keen on trying this out.

SteveSandersonMS commented 6 years ago

Glad to hear your enthusiasm!

If you hold on for a few more weeks, we'll have a downloadable project template, and HttpClient support will be built in. Until then we're focused on implementing these things more than on documenting the incomplete work so far, so my apologies that it will be hard to make sense of until then. It's so early right now that if you really want to dig into it, you'll have to read the sources to figure out what is/isn't implemented and how it might be used :)