React with .NET Web API - Basic App Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024

ความคิดเห็น • 99

  • @GavinLon
    @GavinLon ปีที่แล้ว +112

    I created this video to demonstrate a simple way to create a basic application that uses React for the frontend user interaction functionality and leverages a .NET Web API component that runs on .NET 6 on the server side. I hope you enjoy this video and benefit from it. A special thank you to FreeCodeCamp for sharing this video.

    • @robertoart5056
      @robertoart5056 9 หลายเดือนก่อน +1

      This is not a simple way. why didn't use a string for the image, instead you used an id to grab images in an array then your using the image id to find an image, which if you have huge list of movies & album that will cause a memory leak. If your teaching people how to do it, then show them a simpler way so they understand.

  • @Koden
    @Koden 11 หลายเดือนก่อน +7

    Just a heads up, the source code is pointing to local SSL_CRT_FILE and SSL_KEY_FILE, so you need to change this when running it else it won't load. You, the user, will need to go in and change it to the directory of yours, odds are it's just changing the user ID.

  • @mattmjlg5053
    @mattmjlg5053 ปีที่แล้ว +28

    Y’all teach me more than my Software degree! Thanks code camp

    • @NguyenNam-ne8fk
      @NguyenNam-ne8fk 9 หลายเดือนก่อน +2

      u sleeping at school?

    • @mattmjlg5053
      @mattmjlg5053 9 หลายเดือนก่อน

      @@NguyenNam-ne8fk no brother! What I mean is you get a lot of more generalized info that you can read on google, and not as much applicable specific info that you might need in the industry

    • @Anubis2828
      @Anubis2828 7 หลายเดือนก่อน +1

      Yea they only teach you about 5% of what you need in school

  • @esnatzea
    @esnatzea 6 หลายเดือนก่อน +1

    The Star Trek transition was awesome. Loved it.

  • @The_Ethical_Slacker
    @The_Ethical_Slacker ปีที่แล้ว +10

    By and large this is a useful example, but be careful if you follow the vid too literally, because things appear in his code without explanation. For example, the "export default" statement at the bottom of RankItems. One minute it isn't there, the next it is. We don't see it being typed, nor is there any commentary to explain it.

  • @felixkimutai8478
    @felixkimutai8478 ปีที่แล้ว +3

    Gavin Lon has been my teacher for the last 1 year and I must say I have learned a lot. Thanks Gavin and FreeCodeCamp

  • @jaycanale4026
    @jaycanale4026 8 หลายเดือนก่อน +13

    I cannot find this template in my VS2022 version 17.8.4. Anyone know how I can obtain it?

  • @Ironlionm4n
    @Ironlionm4n 10 หลายเดือนก่อน +6

    Good course, cant help but feel that the local storage portion of the course should have been more focused on working with the backend. Felt more like a React course with a pinch of .NET

  • @nightwing09x
    @nightwing09x ปีที่แล้ว +24

    If anyone else gets stuck on Drop functionality not working, make sure you add
    .rank-cell, .row-label {
    width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    }
    to your custom.css file or else it won't work!

    • @asntube
      @asntube ปีที่แล้ว +1

      I spent ages trying to work this out! Thank you! 🙂

    • @steve-ml2sv
      @steve-ml2sv ปีที่แล้ว

      Solved Finally, Thanks for your help! 😃

    • @chrisr2063
      @chrisr2063 ปีที่แล้ว

      i am befuddled as to why this was the reason and how this dude left it out.

    • @theneonlotus
      @theneonlotus ปีที่แล้ว

      You are my hero! Thank you!!

    • @Antonio63312
      @Antonio63312 ปีที่แล้ว

      needed this! Thank you

  • @twismfamily
    @twismfamily 7 หลายเดือนก่อน +7

    I'm using VS 2022 Community Edition and I don't have the same folders. I don't have the AppRoutes.js file in version 6. Was it moved or removed on an update?

  • @mattmjlg5053
    @mattmjlg5053 ปีที่แล้ว +3

    Wow so simple and short instead of over fluffed

  • @ammarmangala9814
    @ammarmangala9814 ปีที่แล้ว +1

    i've been praying for this! thank god my prayers have been answered.

  • @DjangoBruh
    @DjangoBruh ปีที่แล้ว +3

    This course would've been perfect if there was a db portion instead of hardcoding the objects like that, still a great course tho

  • @jetreject4719
    @jetreject4719 ปีที่แล้ว +4

    great tutorial overall, but... who uses var in javascript in 2023?

  • @DMC3586
    @DMC3586 ปีที่แล้ว +1

    Awesome!! This is exactly what I was looking for.
    Thanks a lot!
    Please more content like this.

  • @nnasim5089
    @nnasim5089 ปีที่แล้ว

    I ahve been looking fot videos like this too thanks man

  • @mattpickel223
    @mattpickel223 8 หลายเดือนก่อน +5

    This tutorial has been very frustrating for me. There a lot of differences in the templates, etc from when this was made (and he is still using class components??? not seeing those in ANY other current tutorials) and a bunch of the proxy stuff is different. It is a nightmare right now to figure out this proxy stuff to get my new Item endpoints to hit. They hitting in postman but defaulting to vite dev server in client.
    Additionally, the pacing and everything could be improved. A bunch of just dead silence intermittently.

  • @cseWorld
    @cseWorld 6 หลายเดือนก่อน +3

    This template is not found in my VS2022 version 17.9.1. How can i find it?

    • @ariansergi7929
      @ariansergi7929 5 หลายเดือนก่อน +3

      have you got any solution? i have the same problem

    • @GavinLon
      @GavinLon หลายเดือนก่อน

      Hi. Before you start you must make sure that you have installed the ASP.NET and web development workload. You can use the React and ASP .NET core project template as described in this Microsoft Learn document - learn.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-react?view=vs-2022
      In this document it describes how to get started with the "React and ASP.NET Core" project template. A difference between the project template that I used in this video course and the one discussed in the Microsoft Learn article is that the client React code and the Asp.NET Core code are separated into two projects within the same solution. I just tried this template and everything works out of the box. I hope this helps.

  • @WoodyDataAI
    @WoodyDataAI ปีที่แล้ว +1

    Thank you Gavin, it is super great tutorials. so fabulous !

  • @9263STYV
    @9263STYV ปีที่แล้ว +1

    Just wondering how to deploy this kind of project to azure? I tried to do it, but the page shows 500 internal error after deployment. Thanks

  • @user-ot4zl1ii2z
    @user-ot4zl1ii2z ปีที่แล้ว +4

    how to use this with typescript? Should I install it using npm?

  • @mahendranath2504
    @mahendranath2504 ปีที่แล้ว +3

    Thank you so much 🎉❤🤝👏👍🤘🏻✌️🫰🏻🙏🏻😍

  • @AM180x
    @AM180x ปีที่แล้ว +2

    Hello I am on Linux, do you have setup instructions for Linux as it doesn't have Visual Studio 2022 available and only has VSCode?

  • @RebeccaPeltz
    @RebeccaPeltz ปีที่แล้ว +1

    Very helpful. I get a missing key error on the RankingGrid. I've tried a few ways to fix but not successful. Any suggestions?

  • @lyafe1272
    @lyafe1272 5 หลายเดือนก่อน

    FrontEnd Port: 44423
    BackEnd Port: 7070
    Also need to change export class d to export class Home in Home.js

    • @lyafe1272
      @lyafe1272 5 หลายเดือนก่อน

      fetch is hitting the frontend port instead of backend port, and I am not getting data in frontend port.
      I added localhost + port number in fetch, I am getting another error now.

  • @ImadEz-zahi
    @ImadEz-zahi 7 หลายเดือนก่อน

    Amazing 👏

  • @pronavsandhu
    @pronavsandhu ปีที่แล้ว +3

    great, a quick explaination of sql server data would have been great

  • @daniborisov5957
    @daniborisov5957 ปีที่แล้ว

    Thank you very much!

  • @dieentdeckung
    @dieentdeckung ปีที่แล้ว

    Great video! Only a few weird hiccups to get it launched & I plan on taking this project further from here! Curious why the drag/drop methods are using .substring(5) to get the moveIDs. Could anyone more knowledgeable maybe explain the practice here?

    • @Mikael_Puusaari
      @Mikael_Puusaari ปีที่แล้ว +1

      transferData.getData takes the id of the element, since it is in the drop function, when u drop in the rankingGrid it takes part of the id of the element starting from index 5, which is the number in the id (the id of the divs in the rankingGrid is something like "rank-4")

  • @zanhbenz
    @zanhbenz 4 หลายเดือนก่อน

    Do you know how can apply with NextJS?

  • @ehsanafzal1589
    @ehsanafzal1589 ปีที่แล้ว +1

    Its goings to be very interesting tutorial

  • @kyong444
    @kyong444 6 หลายเดือนก่อน

    Haha, I like that green screen!

  • @kwhandy
    @kwhandy ปีที่แล้ว

    his background looks realistic, the sounds too. I wonder what kind of screencast software he use(?)

  • @IsaqueMedeiros-c7t
    @IsaqueMedeiros-c7t ปีที่แล้ว +2

    Does anyone can explain to me how the "item" reference in proxy.js file worked ?

    • @nicobost1950
      @nicobost1950 11 หลายเดือนก่อน +1

      i have the same question... it's not working for me and i wonder why

  • @gds1233
    @gds1233 ปีที่แล้ว +1

    Exactly what I needed.

  • @JohnnysCoolStuff
    @JohnnysCoolStuff ปีที่แล้ว

    When it launches a browser instance, javascript is disabled.

  • @charlesdtrader8825
    @charlesdtrader8825 ปีที่แล้ว

    More of this please.... finally

  • @bkcy18
    @bkcy18 ปีที่แล้ว

    Can this be published to iis in the conventional way by creating a new site?

  • @gerrardxcc
    @gerrardxcc ปีที่แล้ว

    why not stop using var in react ?

  • @spazn
    @spazn ปีที่แล้ว

    (Solved) Does anyone else have an issue with refreshing the rank-items route? Everything works but if I refresh on the rank-items route, I get http 404 error, but I can refresh on the fetch-data, counter, and home route just fine.

    • @techz1511
      @techz1511 ปีที่แล้ว

      how did you solve this

    • @spazn
      @spazn ปีที่แล้ว

      @@techz1511 I'm away on vacation ATM so i don't have it in front of me, but it had to do with changing the router that was wrapping the ,, with BrowserRouter I believe.

  • @sikoy4518
    @sikoy4518 ปีที่แล้ว +1

    Thank you so much

  • @pratap4147
    @pratap4147 ปีที่แล้ว

    Awesome thank you very much 😊

  • @clarkflavor
    @clarkflavor ปีที่แล้ว

  • @aniskadri140
    @aniskadri140 ปีที่แล้ว

    Merci

    • @nicobost1950
      @nicobost1950 11 หลายเดือนก่อน +1

      More like "Mercy"

  • @sohaibe7818
    @sohaibe7818 7 วันที่ผ่านมา

    20 minutes in and i've never been more confused, The files are different what he is working on, and Dead Silence in between and no concept of what he's writing in the code

  • @techz1511
    @techz1511 ปีที่แล้ว

    I have a problem with loading the movies titles, any idea where i went wrong? I got to around 25th minute of the video

  • @mrgippy123
    @mrgippy123 ปีที่แล้ว

    It's about 90% React and 10% .NET Web API. Its still a good tutorial though.

  • @minhduc8a21
    @minhduc8a21 ปีที่แล้ว

    "Green screen" means a lot of things to me 😂

  • @RickSteadX
    @RickSteadX 9 หลายเดือนก่อน +3

    wasted my time 👎👎

  • @varunaggarwal7126
    @varunaggarwal7126 8 หลายเดือนก่อน

    I used typescript with redux, it worked better than this spa server.

  • @SayWhaaaaaaaaaaaaaaaaaaaaaaat
    @SayWhaaaaaaaaaaaaaaaaaaaaaaat 5 หลายเดือนก่อน +1

    NOT REAL DEVELOPER..USES BRIGHT THEME IN EDITOR.... ! :)

  • @varunaggarwal7126
    @varunaggarwal7126 8 หลายเดือนก่อน +5

    This tutorial is not good(sry), you have not explained spa server, how dotnet middleware is interacting with react for routing etc, this is important even though you want to keep the time short, moreover that drop logic and lists of array you have added you have not explained it clearly, you seem like backend developer who only dwelled in some frontend.

  • @nb664rbk
    @nb664rbk ปีที่แล้ว +1

    the intro 💀💀💀💀

  • @DevEmpower
    @DevEmpower ปีที่แล้ว

    Hi. How we can be a member of freeCodeCamp and make tutorials?

  • @samuelallieu
    @samuelallieu ปีที่แล้ว +1

    I'm lost......hahahaaa funny me

  • @kimle9554
    @kimle9554 ปีที่แล้ว

    like 1

  • @vella166
    @vella166 ปีที่แล้ว

    Chatgpt demotivating me to learn web or app devs at higher level😟😟

  • @risechess7114
    @risechess7114 10 หลายเดือนก่อน +1

    this is not professional work because u have to clean up the code before u start and why is that, i tell u when because i dont have proxy.js and when i start new project with .netcore and react i dont have the same front end as u . so if u are professional u have to clean the code so all starters whatever the version can apply as u did, so this video is just for first 3 month. and then its complete lost

    • @mswalsh68
      @mswalsh68 6 หลายเดือนก่อน +1

      in .Net8.. its 2 folders for the project, a server and client, not 1 like shown here, but the proxy is found in the vite.config.js file on the client side
      this is all you have to do... scroll down and find where the weather proxy is.. and just add a new object to the proxy like I did here.
      server: {
      proxy: {
      '^/weatherforecast': {
      target,
      secure: false
      },
      '^/item': {
      target,
      secure: false
      }
      },

  • @thejezzi5219
    @thejezzi5219 ปีที่แล้ว

    Really I feel so dumb. Even someone who lives in a forest is programming way better than me.
    EDIT: And he even has a pet dinosaur. What am I doing with my life 🤷‍♂

  • @bazz6932
    @bazz6932 ปีที่แล้ว

    First Comment

  • @isaacjon
    @isaacjon ปีที่แล้ว

    Why's his vs code so ugly

    • @isaacjon
      @isaacjon ปีที่แล้ว

      Soo light

    • @patrickminega120
      @patrickminega120 ปีที่แล้ว +1

      It's not vs code

    • @engineeringvision9507
      @engineeringvision9507 ปีที่แล้ว

      He's in a rainforest 😝😝😝

    • @prabhjotarora2740
      @prabhjotarora2740 ปีที่แล้ว

      It's not vs code,its just vs!
      Vs is an IDE and vscode is an light weight editor!

    • @isaacjon
      @isaacjon ปีที่แล้ว

      @@prabhjotarora2740 so what's the pros of this compared to vs code?

  • @chuck_norris
    @chuck_norris ปีที่แล้ว

    js is bloatware by design.

    • @thejezzi5219
      @thejezzi5219 ปีที่แล้ว

      It is so weird to read your name first and then the joke.

  • @lawliet2263
    @lawliet2263 ปีที่แล้ว

    What is this

    • @thejezzi5219
      @thejezzi5219 ปีที่แล้ว +4

      You call it a video. Young folks invented it but I dont think it's gonna trend for long.