- 187
- 951 458
cdruc
Romania
เข้าร่วมเมื่อ 17 ม.ค. 2013
Always do this when uploading files in Golang
Always do this when uploading files in Golang
มุมมอง: 427
วีดีโอ
Configure Golang web apps using command-line flags
มุมมอง 2952 หลายเดือนก่อน
Configure Golang web apps using command-line flags
Session-Based Authentication in Golang
มุมมอง 3.5K2 หลายเดือนก่อน
Session-Based Authentication in Golang
Reusable Form Validation in Golang: Step-by-Step Tutorial
มุมมอง 7902 หลายเดือนก่อน
Code snippets: github.com/druc/posty
Building a Golang Web App using SQLite
มุมมอง 3.4K2 หลายเดือนก่อน
Code snippets: tallpad.com/series/golang-randoms/lessons/building-and-structuring-a-golang-web-app-using-sqlite
Serving Static Files in Golang
มุมมอง 4863 หลายเดือนก่อน
Code snippets: tallpad.com/series/golang-randoms/lessons/serve-static-files-in-golang
Caching HTML templates in Golang
มุมมอง 5573 หลายเดือนก่อน
Code snippets: tallpad.com/series/golang-html/lessons/caching-html-templates-in-golang
Create a Reusable Layout in Golang
มุมมอง 5923 หลายเดือนก่อน
Snippets: tallpad.com/series/golang-html/lessons/create-a-reusable-html-layout-in-golang
Gracefully Handle Template Errors in Golang
มุมมอง 2323 หลายเดือนก่อน
Snippets: tallpad.com/series/golang-html/lessons/gracefully-handle-template-errors-in-golang
Render an HTML template in Golang
มุมมอง 9273 หลายเดือนก่อน
Code and notes/FAQ: tallpad.com/series/golang-html/lessons/render-an-html-template-in-golang
Routing in golang
มุมมอง 7733 หลายเดือนก่อน
Go version: 1.22.4 Timestamps: 0:00 - Intro 0:12 - Starting a server 0:36 - Router 0:53 - Fixed paths 1:33 - Subtree paths 1:57 - 404 matching 2:40 - Dynamic paths 2:50 - Overlapping paths 3:26 - Request methods 4:22 - Route and query parameters 4:50 - Optional route parameters
419 CSRF Token Mismatch - Laravel Sanctum
มุมมอง 6K6 หลายเดือนก่อน
419 CSRF Token Mismatch - Laravel Sanctum
Debugging Laravel Sanctum CORS errors
มุมมอง 2.7K6 หลายเดือนก่อน
Debugging Laravel Sanctum CORS errors
Laravel Authentication for React Native Apps using Breeze and Sanctum
มุมมอง 8K7 หลายเดือนก่อน
Laravel Authentication for React Native Apps using Breeze and Sanctum
Laravel Sancum - automatic CSRF cookie retrieval
มุมมอง 1.7K9 หลายเดือนก่อน
Laravel Sancum - automatic CSRF cookie retrieval
Handling Axios Errors in Vue.js with Laravel Sanctum
มุมมอง 2.2K9 หลายเดือนก่อน
Handling Axios Errors in Vue.js with Laravel Sanctum
Is that LocalStorage user even authenticated?!
มุมมอง 1.2K9 หลายเดือนก่อน
Is that LocalStorage user even authenticated?!
TypeScript Types for Laravel Validation Errors
มุมมอง 1.1K9 หลายเดือนก่อน
TypeScript Types for Laravel Validation Errors
Vue Navigation Guards & LocalStorage Security Concerns
มุมมอง 1.5K10 หลายเดือนก่อน
Vue Navigation Guards & LocalStorage Security Concerns
Syncing Pinia Stores with LocalStorage across Tabs
มุมมอง 2.5K10 หลายเดือนก่อน
Syncing Pinia Stores with LocalStorage across Tabs
Extremely helpful, thanks a lot!!
Which theme / font are you using in VsCode ?
You explain it so perfectly!
I love you, man
a great video but i have a problem the html dose not render the posts and i loged the posts before sending them to html and there is posts avilable but no data to render ?
that's weird if you send me a repo link, I'll gladly have a look!
You are a saviour man, thnak you!
i dont know but i think i watched your laravel sanctum videos but im still getting 419 errordamn
Oh man thanks a lot!!. I had already given up on Sanctum and was going to replace it with jwt or bearer tokens until I saw your video. You're the best!!
Today i completed this tasks, and learned how to use v-bind. Thanks, guy!
I don't get how you can build an API... Where you're using postman or similar. You're not coming from a server, just a desktop app .. what does the server/VM running the API think the referer is? There's no website making the request... Just an app. Really confuses me
you add the referer header yourself: Laravel Sanctum and Postman th-cam.com/video/My61OicxPRo/w-d-xo.html
💘 awesome
The "CSRF Missmatch" is mostly the combination of scripts and version problems. I have tested "axios" version 1.1.3 working with Laravel 9, 10, 11 all fine. I have tested "axios" vesrion 1.5.1 working with Laravel 9 & 10 but failing with 11. I have tested "axios" version above 1.6 and failing with Laravel 9, 10 & 11. Can anyone else test and report?
Can this be used for Google authentication on mobile app?
I try to do this but it always execute what it is in the clousure
In that matter there is no difference between browser side cookie vs local storage, the general best practice is to store it as "HttpOnly" server-side, but I do not see that when client and backend are separately developed.
Learning go as my 3rd language. I did not you can parse json that way. Thanks a lot for the very interesting project.
Maybe you can make a nice tutorial of laravel reverb with react native also? Cannot find a lot about it but i am very curious how this works.
Hello, is it possible to use this as reference material? I'm learning Go and would like to buikd along with you with my own ouch, and am asking to see in case I ever put it in a public repository. (If I ever do, I will naturally leave a link to this video) Thank you!
hey, yeah, use it however you want you can find the code here as well: cdruc.com/go-weather-cli
On my local setup, My SPA is an angular app on app.domain.test:5173 My backend is on domain.test running with laravel herd I have tried everything but the cookie is just not being set in the browser
Thank you very much, BRO! Your videos are always exactly what we need!
can u made the Icon modul work like this, because I've got so many invisible icon at first
Thanks, how to use csrf with ajax? Not just one request, for example chat.
either you get the cookie manually, when configuring the request options, or you add a request interceptor that does that automatically for all your request
@@cdruc Thanks.
i love this type of videos, quick, clear, gives the minimum to get things done, thanks @cdruc
And what happens when a user tries to load the app but he/she cancelled the subscription. Then he is logged in into the app, but his account is disabled in the backend. So requests will fail. Shoud that be checked anywhere?
you should probably check both when the app loads and on a per request basis. when the app loads offers a better experience because the user knows instantly “oh, it doesnt work because my subs is expired” rather than finding it out afterwards
Great tutorial!
Subbed because of this, thanks
can u make a video for handliing this in frontend framework like react
Works awesome! Thanks for the great explanation! Only problem i encounter, and i also see it in your browser on the last frames of the video, is that after a selection the term is set to empty in the url, which causes the select to reset..
Wow everything is so simple and intuitive in go. Nice
loved your video man. thanks
wait what? i never saw who use provide and inject. now i found it. u are master of vue js. thank you for make me understand and know what benefit of it. 🔥🔥🔥
thank u dude thank u <3
Hey, I have a nice goose make file how can I share it with your community?
I have known about it, but never saw someone to demonstrate it. Thank you very much! Your explanation is amazing. It indicates how much effort you put in your videos. I myself is a creator so I know how much you worked. Keep up please!
Thank you so much
you are great man 💚💚
TIL Great video man, I didn't knew about this. Tho files in the tempdir get deleted automatically on shutdown or after some time, still its great to be able to delete them. Specially if they are big files :) Thanks for your work, subscribed and waiting on more videos :)
"/{$}" will match root only. "/" will match for not founds.
this is super nice! thanks!
great tutorial
Nice tutorial but I'm getting error : app.routes undefined (type app has no field or method routes)
ensure that the routes function has the app *app as the receiver and that they are defined under the same “main” package
Question: Why you call frontend url in pre request script in postman to get cookie, why not call the laravel sanctum/csrf-cookie URL?
To the point....Lots of love from INDIA 👍🏻
Its really cool tutorial. will test it out today. Thanks for sharing
In this particular case it much easier to just add your login url to csrf exception it doesn't make much sense to check it for login
can you share the code for this example?
here it is: github.com/druc/posty - might include some things form different videos i made, not sure
Great video man, simple and just spot on, I really like you channel
Is really the Golang + tmpl + htmx stack production safe? I see building for example a blog, its ok specially if you use Hugo framework. But what about middle size apps, such as ecommerce or a learning platform? Thank you again :D
no idea tbh. I haven't used htmx at all. Looks cool but I don't think it's suitable for larger apps. Again, I haven't used htmx so my opinion is of no value. The "stack" i'm playing with right now is a monolith golang + react&react-router - really happy with it.
@@cdruc Thank you very much. Really appreciate your answer. I was also looking at that stack. I will give it a try. Thanks again !
I use that stack in big prod sites, no issues. I have no clue why people talk about it not being a prod stack. But it works fine at scale for us.
Thank you very much. I have a question tho. What about caching whenever the app has some states? For example, you are in your cart page, remove something from the cart and go back. Cos the page is cache, you will get the older version with the outdated cart. Any solutions to this problem?
so its just a clone of laravel precognition vue component haha. love it
Respect from Pakistan 🇵🇰