
Shubh Srivastava
@ThatSneakyCoder
Followers
182
Following
1K
Media
127
Statuses
778
Backend engineer | I share informational posts on modern backend Trends, Tools and, AI
India
Joined October 2024
A strong trend shows many modern startups are choosing Golang for their backend. Here's a curated list of must learn tutorials to help you become the best at backend golang development.
9
68
577
Successfully integrated openFGA into my golang app. Next up will be updating most of my routes to work strictly with right permissions. Will improve business logic over permission set as well.
Will be dropping a full fledged tutorial on how to integrate OpenFGA in your Golang application soon.
0
0
11
Will be dropping a full fledged tutorial on how to integrate OpenFGA in your Golang application soon.
1
1
6
I have disabled major auto-completing in my vscode. Only suggestions show up for some items.
0
0
2
That's it. Simple 10 steps. If you liked it. Consider following or engaging with the post. Don't forget to re-post.
0
0
1
You will get a json response (resp) from twilio as shown in the image. That "status" field will tell you whether the otp entered was correct or not. Use this info to intimate the user and(or), use it further in the backend. (10/n)
1
0
1
Now, for the final step, we are at "Checking The Verification Token". You need the OTP and, phone number of user (should be sent by the frontend) for this. Once you get that, call the verification api of twilio as shown in the image below. (9/n)
1
0
1
The below code is for "Sending a Verification Token" to the user (otp). Note that this only sends the otp on your mobile and deducts your credit from twilio account but, does not verify it. (8/n)
1
0
0
Note that sending an otp and verifying it is 3-step process when working with twilio. We have already finished step 1 through the dashboard where we created our service but, it can also be done through code like in the image below. (7/n)
1
0
1
Now in your Golang application, add the below two imports as shown and, hit the following command: $ go mod tidy You can also use "go get ..." to download these libraries. (6/n)
1
0
1
This step is important. You will get your "Service SID" here. This SID is important to put in your Golang code because, twilio uses it to check your account. We're pretty much done with twilio's website here. (5/n)
1
0
1
"SMS" option will be selected by default. Enter a phone number verified by twilio (or, just enter your own phone number). You can test ready-made code provided by twilio. You should receive test otp on the mentioned phone number. Now go to the configuration page. (4/n)
1
0
1
Your dashboard will look as shown in the image. You will be given about 15USD free credits as a first time user. Click the "Start building" button. (3/n)
1
0
1
You will need to enter your phone number. This will be used for authentication and, testing (required later for otp testing). You'll be given a recovery code. Save it. (2/n)
1
0
1
The process is simple. Sign up on twilio's website by entering your information. (1/n)
1
0
1
You *NEED* to verify your users if you're building a project that deals with sensitive user data. One such way is through mobile OTP verification. Below is step by step method to setup your Golang app with Twilio to verify users 👇
2
0
6
Google Gemini still is far behind in terms of producing good code.
0
0
1
vro ain't no way I dealin with these many screen (+ 2 terminals on my laptop)
2
0
5
Database design so far. I am going to implement full fledged RBAC through OpenFGA engine soon.
2
0
20