To Do App is a nonsense project to spend all the muscle memory of Svelte on. I can already build a To Do App with pure JavaScript. Why would I want to learn HTML, CSS, JavaScript, and after all these, learn Svelte-- just to build a To Do App? Please expand your Tutorial to build a Facebook clone. Many React tutorials are spent creating a Facebook, Instagram, RU-vid, and so on clones. We don't want to learn a whole Svelte framework because we want to use it to build a To Do App. We want to learn Svelte because we want to use it to build real world Projects like a Facebook clone. Give us tutorial on how to build Facebook clone with Svelte. Regards.
I feel like you could keep the service lvl cleaner like this: in sign in logic, you didn't have to pass req and res to the service level and could've handled as follows: At the service level: async sign-in(dto) { ...The rest of your code return token; } And then at the controller level: async sign-in(dto, req, res) { const token = await this.authService.sign-in(dto) req.cookie("jwt", token, {...Your cookie options}). }
Very nice! Thank you for this tutorial! I plan on expanding upon it for a personal project 😃 One thing I will add is that my setup needed me to define the Mutation in the schema for the graphql/index.ts file. Without it the server threw an exception and it would not start. I'm not sure how it worked for you in this video 🤔but nevertheless, it was easy to solve.
Not a good idea to assign a date field a default value of undefined. You should either set it to now ( the current date) or the minimum allowed date (in this case minimum allowed age).
brother I was struggling when implementing the date, I was using MUI date picker, it was making me so confuse and the validation was not working properly. The way you make it works perfect =) thanks! The only thing is that RHF docs says its not recommended to use undefined as defaultValue
how to use myuser api for fetching data... i get error unauthorised when i call from react frontend, i set token in token in cokies using jwt-token, then pass it by headers .. but not work.please give a axios example.. its urgent
yea sure, anyway I think I will post just one more video regarding authentication and will cut it Nextjs is still garbage and I will not continue using it.
@mikedev4673 This would be really cool. Well, we are waiting for you, and I have a suggestion for you. Can you use Type ORM? In the project and make it a microservess or use GraphQL for the api
@@murtadanazar from what I remember I saw in the benchmarks that Type ORM and Prisma are pretty equal in terms of performance so I did not bother to learn it (as Prisma is already very developer friendly), regarding GraphQL I need to see how the meta frameworks can handle it with all the server side render and stuff so need to see if Sveltekit / Next are capable of working with it properly. Microservices can be an interesting topic I will consider.
not an understatement when I say this is the best typescript tutorial on youtube. straight to the point, includes examples and explanation. the best part about this is you did not waste time writing each example first which can make videos painfully long. This was a great refresher for me, thank you and keep it going. +subbed
Explanation could have been better. Perhaps by re writing each example in JavaScript first and then achieving the given typescript version. It was very confusing most of the time.
Sorry for the confusion it was meant for more advanced devs that are familiar with the basics, there are many other beginner friendly courses on youtube 🙏
@@mikedev4673 no need to apologize as you've clearly mentioned in the video title "beyond junior level" - which I am. I've 6 months front-end developer commercial experience in React with typescript and next js. So either you are referring to 3-5 years experienced devs as 'beyond junior' or the explanations are really not upto the mark. I just believe it's the latter but I maybe wrong. In that case there is clearly a skill gap between what I am and what I think I am. But mostly not, because I know the js, React, type hint and many general concepts very well
I just started learning PostgreSQL and this was massively helpful. I went on to build a fullstack jobs management application using this tutorial. I encountered a small issue I am hoping you can help me with. I created all the routes and I am generating and passing the token through the cookie. On my local environment, when a user logs in, the token is saved in the cookie and then the user can go ahead to make other api requests but when I deploy my site on cloud management tools like Render or Railway which hosts a static build file of my frontend, when the site is live and a user logins in, the token is no longer generated and saved in the cookie so I cannot perform api requests that require authentication. I was hoping you can help me explain this. Thank you
Maybe try to look for cookie policies online I don’t remember the options but you have to specify some options if you pass the cookie from different frontend url to your backend