React with .NET Web API - Basic App Tutorial

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024

Комментарии • 98

  • @GavinLon
    @GavinLon Год назад +111

    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 8 месяцев назад +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.

  • @jaycanale4026
    @jaycanale4026 7 месяцев назад +12

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

  • @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.

  • @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.

  • @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 6 месяцев назад +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 Год назад +27

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

    • @NguyenNam-ne8fk
      @NguyenNam-ne8fk 8 месяцев назад +2

      u sleeping at school?

    • @mattmjlg5053
      @mattmjlg5053 8 месяцев назад

      @@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

  • @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

  • @Ironlionm4n
    @Ironlionm4n 9 месяцев назад +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

  • @esnatzea
    @esnatzea 5 месяцев назад +1

    The Star Trek transition was awesome. Loved it.

  • @cseWorld
    @cseWorld 6 месяцев назад +3

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

    • @ariansergi7929
      @ariansergi7929 4 месяца назад +3

      have you got any solution? i have the same problem

    • @GavinLon
      @GavinLon 21 день назад

      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.

  • @ammarmangala9814
    @ammarmangala9814 Год назад +1

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

  • @mattmjlg5053
    @mattmjlg5053 Год назад +3

    Wow so simple and short instead of over fluffed

  • @lyafe1272
    @lyafe1272 4 месяца назад

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

    • @lyafe1272
      @lyafe1272 4 месяца назад

      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.

  • @mattpickel223
    @mattpickel223 8 месяцев назад +4

    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.

  • @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.

  • @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?

  • @user-ot4zl1ii2z
    @user-ot4zl1ii2z Год назад +4

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

  • @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

  • @WoodyDataAI
    @WoodyDataAI Год назад +1

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

  • @nnasim5089
    @nnasim5089 Год назад

    I ahve been looking fot videos like this too thanks man

  • @user-ks9jj5tj8x
    @user-ks9jj5tj8x Год назад +2

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

    • @nicobost1950
      @nicobost1950 10 месяцев назад +1

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

  • @gds1233
    @gds1233 Год назад +1

    Exactly what I needed.

  • @ImadEz-zahi
    @ImadEz-zahi 7 месяцев назад

    Amazing 👏

  • @mahendranath2504
    @mahendranath2504 Год назад +3

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

  • @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")

  • @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?

  • @pronavsandhu
    @pronavsandhu Год назад +3

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

  • @ehsanafzal1589
    @ehsanafzal1589 Год назад +1

    Its goings to be very interesting tutorial

  • @charlesdtrader8825
    @charlesdtrader8825 Год назад

    More of this please.... finally

  • @JohnnysCoolStuff
    @JohnnysCoolStuff Год назад

    When it launches a browser instance, javascript is disabled.

  • @zanhbenz
    @zanhbenz 3 месяца назад

    Do you know how can apply with NextJS?

  • @kyong444
    @kyong444 6 месяцев назад

    Haha, I like that green screen!

  • @gerrardxcc
    @gerrardxcc Год назад

    why not stop using var in react ?

  • @sikoy4518
    @sikoy4518 Год назад +1

    Thank you so much

  • @pratap4147
    @pratap4147 Год назад

    Awesome thank you very much 😊

  • @clarkflavor
    @clarkflavor Год назад

  • @kwhandy
    @kwhandy Год назад

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

  • @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.

  • @bkcy18
    @bkcy18 Год назад

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

  • @SayWhaaaaaaaaaaaaaaaaaaaaaaat
    @SayWhaaaaaaaaaaaaaaaaaaaaaaat 4 месяца назад +1

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

  • @mrgippy123
    @mrgippy123 Год назад

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

  • @aniskadri140
    @aniskadri140 Год назад

    Merci

  • @minhduc8a21
    @minhduc8a21 Год назад

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

  • @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

  • @varunaggarwal7126
    @varunaggarwal7126 8 месяцев назад

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

  • @DevEmpower
    @DevEmpower Год назад

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

  • @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 💀💀💀💀

  • @RickSteadX
    @RickSteadX 9 месяцев назад +3

    wasted my time 👎👎

  • @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 9 месяцев назад +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 5 месяцев назад +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
      }
      },

  • @bazz6932
    @bazz6932 Год назад

    First Comment

  • @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 🤷‍♂

  • @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.