- 7
- 45 428
ToastyBits
Spain
Registrace 17. 04. 2021
Node.js & Typescript Tutorial: Learn to code an Email Verification API using SMTP protocol
Please Like & Subscribe if you enjoyed the video.
Support my tutorials by becoming a Patreon: www.patreon.com/toastybits
Get the source code for this project from my Patreon page: www.patreon.com/toastybits
Check out the article version of this tutorial: toastybits.dev/make-a-passive-income-by-building-an-email-verification-api/
Learn to code an Email Verification API. This is a service used by thousands of companies to validate if the emails they have to contact potential customers are accurate.
In this tutorial you will learn how to create an Express API from scratch using TypeScript and will learn how Emails work under the hood. We will take a look into MxRecords as well as the SMTP protocol.
Support my tutorials by becoming a Patreon: www.patreon.com/toastybits
Get the source code for this project from my Patreon page: www.patreon.com/toastybits
Check out the article version of this tutorial: toastybits.dev/make-a-passive-income-by-building-an-email-verification-api/
Learn to code an Email Verification API. This is a service used by thousands of companies to validate if the emails they have to contact potential customers are accurate.
In this tutorial you will learn how to create an Express API from scratch using TypeScript and will learn how Emails work under the hood. We will take a look into MxRecords as well as the SMTP protocol.
zhlédnutí: 3 082
Video
HOW TO FIX SyntaxError: Cannot use import statement outside a module
zhlédnutí 32KPřed rokem
Are you using imports in a node.js application and running into the SyntaxError: Cannot use import statement outside a module error? Here are 3 ways to fix this error. If you're developing a JavaScript application, then add "type": "module" into your package.json file. If you're developing a TypeScript application, then make sure "module" is set to "commonjs" in your tsconfig.json file. If you'...
Tutorial: Learn how to dockerize and deploy an API onto AWS Fargate
zhlédnutí 8KPřed 2 lety
Code at your own pace with the help of this written-form tutorial with code snippets and the complete source code: toastybits.dev/deploying-a-node-app-onto-aws-fargate/ Become a Patreon: patreon.com/toastybits Fargate is a great product AWS offers to deploy your backend applications onto. It combines the flexibility and scalability of containers, together with the ease of use of a hosted soluti...
Tutorial: Learn to code a link shortener using TypeScript and a NoSQL database on AWS
zhlédnutí 630Před 2 lety
Code at your own pace with the help of this written-form tutorial with code snippets and the complete source code: toastybits.dev/building-a-link-shortener-using-typescript/ Become a Patreon: patreon.com/toastybits Today we build a simple link shortener using Node, TypeScript and AWS DynamoDB. The goal is to learn the basics of TypeScript and DynamoDB, and build something that’s easy to grasp a...
bullshit
i ran into this another errror: Failed to resolve module specifier "mysql2". Relative references must start with either "/", "./", or "../". How can i fix it, i am trying to connect to sql database for my project. Thanks
shout out to you , you solve my problem😍
What I dont get, is why doesnt it install the module/cjs type from the get go? ITs the stupidest thing
Thank you! I added Jest and couldn't get it to run. Adding "type" into package.json fixed it! I didn't find this in the Jest documentation..
Hi, i am creating a widget that is heavily dependent on firebase. I put the firebase initialize command in a separate js file from the main js file. For some reason, anytime i run the local host it throws this exact error. even after inputing the "type"="module" type="module" in json and html respectively, i am still getting the error. Has anyone found another solution please?
I have created a new file Header.js .... created a function header.. exported it .... imported inside the app.js...... but unable to use it as a tag in app.js ... like how r we supposed to use it in react...
i have some queries on this, can you please reply?
You there?
what about "SyntaxError: Identifier 'sequelize' has already been declared" ?
and what do you do if you dont have the node file
im new to this shit how do i create the module
Thanks!
Please help!, I've been trying to do the dynamoose configuration but it isn't working, It keep saying Property sdk does not exist on type AWS
Very helpful ❤
Bro I am sick getting this error finally you helped me thanx
Thank you so much for your simple solution💙
When putting in the port in Task Definition I have hard time. So, in my dockerfile I have expose 5000. When I run the image in Docker Desktop. I cannot connect via localhost:5000 or the IP it gives me. BUT if I give a port like 8080 and type localhost:8080 then it works just fine.(In web) My task definition starts and stops after 10sec
Thanks man, It worked!
thanks alot <3
This tutorial is very clear and manages to explain everything within a reasonable amount of time. Amazing.
nice video i made it , but here the problem i can't use API because there is no SSL certificate for AWS Fargate so i get ''net::ERR_SSL_PROTOCOL_ERROR'' when i call API . Do you have video how to get SSL for aws Fargate , thank you
It is woking, but if import is inside called function, then it is giving error.
The best you really helped me ❤
its not working
not even using nodejs and encoounter this, pls be specific on the title!
How could i forward emails from a users gmail to hit my node server? The forwarding recipient has to be an email, cant be an endpoint.
thansk for give me this information i have try to fix that error from previous 5 days i search more but finfally recive your vidoe and i have fixed it
This is exactly what I was looking for, thank you so much!
What steps do we need to do again when we update the API?
That's an awesome tutorial man, it saved my day. Can you please do a video for hosting React and Node? There aren't many resources out there.
I was struggling 4 days with port mapping. Finally got it solved! This is the best resource I've come across so far. Thank you.
Thank you so much for your comment, I really do appreciate it. It helps out a lot to know what I put out is very useful. Stay tuned for more!
Thank you so much for your comment, I really do appreciate it. It helps out a lot to know what I put out is very useful. Stay tuned for more!
Worked well for my Typescript-Nodejs server API, so well explained all the details. Thanks and congrats!
Amazing, I'm glad this helped you!
Hi, I am still facing issues after this fix. Forced clean cache too. Working on .ts. target and module set inside compiler options as per the video but still. Any ideas?
How did you fix it? I still get the error.
great video bro !!!!
Netcat just hangs when I enter the command. Tried with lesser priorities, still doesn't work. Tried reinstalling, no good. Running Ubuntu on WSL2.
Tried Telnet, same issue
Excellent Tutorial!!! Just wanted to ask how can we do the same thing if I have multiple docker container talking to each other?
Did you know how to develop an Email Verification API? What other ideas for projects would you like me to show? Leave a comments and upvote project ideas!
Please make a video on inversion of control.!!!
Great suggestion. I use IOC in pretty much all production apps, so I might do a video on that soon.
If possible, build an API Rate limiter, implement leaky bucket algorithm and deploy on AWS, Great use of AWS Elasticache or Memory DB will be needed.
Thanks for your comment, these features would indeed be required for a full-blown production app. Stay tuned for more, I'll soon update the project with more features like the ones you mentioned.
Have you run into this error? We all have! Leave a comment if this helped you solve the issue in your project.
Hey, what if it doesn't fix the issue? I'm using Js, and I already had the "type":"module" set inside my package.json What other reason might there be for the issue to occur? :(
@@adrian-ioanmunteanu3027 samee, I'm facing that error right now😢
Nice!!! I thought you never going to upload again. Really Nice!! Keep going.
Thanks Vishal, part 2 going live soon!
Great tutorial. Can you share the git repo for this project?
Thanks Shivam! The project is still not finished so I still haven't uploaded it to github. Stay tuned for the second stream where I will finish the project (make sure to like and subscribe to not miss out on the second part)
Hi Shivam, I've just released a video summarising (and improving on) the code from this live stream. The Source Code is available at the link in the description for Patreons. czcams.com/video/A3dcUY-pwFg/video.html
You don't need pm2 with Fargate. It automatically handles restarting your tasks on error
I disagree. PM2 and Fargate do completely different things. PM2 is a process manager. It's job is to efficiently run node processes, monitor them and if they crash, restarts them. It also tries to optimise resources on your machine (i.e. runs multiple processes in parallel to accept more concurrent requests, etc.) When you talk about Fargate, I believe you specifically refer to the health checking feature where it periodically pings an endpoint on your application to check if it's healthy, and if it doesn't respond, or responds with a 500 status code, restarts the entire instance. This is a very passive way of restarting your service. Needless to say it doesn't lack any of the process monitoring features PM2 has, it would also have a significant delay in restarting your app (pings every 30 seconds or so, plus restart time, etc.). It's a good fallback to have, but PM2 for me is absolutely necessary.
Amazing tutorial. Please continue posting.
Thanks, will do!
Really useful. Keep on posting videos.
Thank you, I will
Hey, thanks for the excellent tutorial! Also a note to say the certificate on your site is expired and is blocking entry to your site
Thanks for letting me know. I'm re-activating this youtube channel and will update the site very soon. Thanks!
You are installing pm2 on the fargate, why ?
In a production scenario you don't run applications without process managers. These take care of the underlying processes that run the application and make sure the load is distributed correctly amongst CPU cores, threads, etc. and detects if a process needs restarting to make sure it's always healthy. This is what PM2 does and why you need it.
This is perfect, thank you.
Thanks :)