ToastyBits
ToastyBits
  • 7
  • 45 428
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.
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...

Komentáře

  • @xushenxin
    @xushenxin Před 2 dny

    bullshit

  • @v3t3r4an9
    @v3t3r4an9 Před 2 měsíci

    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

  • @malikrasheed-9937
    @malikrasheed-9937 Před 5 měsíci

    shout out to you , you solve my problem😍

  • @tommyshaw2420
    @tommyshaw2420 Před 5 měsíci

    What I dont get, is why doesnt it install the module/cjs type from the get go? ITs the stupidest thing

  • @KimHogeling
    @KimHogeling Před 5 měsíci

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

  • @KINGMODEOFFICIAL
    @KINGMODEOFFICIAL Před 5 měsíci

    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?

  • @stockprooo
    @stockprooo Před 6 měsíci

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

  • @nitink6253
    @nitink6253 Před 8 měsíci

    i have some queries on this, can you please reply?

  • @nitink6253
    @nitink6253 Před 8 měsíci

    You there?

  • @stodani
    @stodani Před 8 měsíci

    what about "SyntaxError: Identifier 'sequelize' has already been declared" ?

  • @DJ_DeenoB
    @DJ_DeenoB Před 9 měsíci

    and what do you do if you dont have the node file

    • @DJ_DeenoB
      @DJ_DeenoB Před 9 měsíci

      im new to this shit how do i create the module

  • @lucasshira
    @lucasshira Před 9 měsíci

    Thanks!

  • @stephaniecrispin674
    @stephaniecrispin674 Před 9 měsíci

    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

  • @duytruongnguyen8096
    @duytruongnguyen8096 Před 9 měsíci

    Very helpful ❤

  • @cruzegaming151
    @cruzegaming151 Před 10 měsíci

    Bro I am sick getting this error finally you helped me thanx

  • @user-nd7sk2ph4f
    @user-nd7sk2ph4f Před 10 měsíci

    Thank you so much for your simple solution💙

  • @djohnworthy1040
    @djohnworthy1040 Před 10 měsíci

    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

  • @De_Brainiac
    @De_Brainiac Před 11 měsíci

    Thanks man, It worked!

  • @uctoannguyen2091
    @uctoannguyen2091 Před 11 měsíci

    thanks alot <3

  • @Clark-Wang
    @Clark-Wang Před rokem

    This tutorial is very clear and manages to explain everything within a reasonable amount of time. Amazing.

  • @SandWalk
    @SandWalk Před rokem

    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

  • @RaviKumar-py2bs
    @RaviKumar-py2bs Před rokem

    It is woking, but if import is inside called function, then it is giving error.

  • @Jose-ub1yp
    @Jose-ub1yp Před rokem

    The best you really helped me ❤

  • @morji8664
    @morji8664 Před rokem

    its not working

  • @AbdullahSaid-wj8kh
    @AbdullahSaid-wj8kh Před rokem

    not even using nodejs and encoounter this, pls be specific on the title!

  • @jasonc6241992
    @jasonc6241992 Před rokem

    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.

  • @LearnWithUs5
    @LearnWithUs5 Před rokem

    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

  • @ramonrahner9969
    @ramonrahner9969 Před rokem

    This is exactly what I was looking for, thank you so much!

  • @cihadp
    @cihadp Před rokem

    What steps do we need to do again when we update the API?

  • @jamilabbasOfficial
    @jamilabbasOfficial Před rokem

    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.

  • @mrityunjoyborayt
    @mrityunjoyborayt Před rokem

    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.

    • @MichaelGradek
      @MichaelGradek Před rokem

      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!

    • @toastybits.
      @toastybits. Před rokem

      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!

  • @JavierAlonso-oz4fg
    @JavierAlonso-oz4fg Před rokem

    Worked well for my Typescript-Nodejs server API, so well explained all the details. Thanks and congrats!

  • @1990priyankasingh
    @1990priyankasingh Před rokem

    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?

    • @atuloraon9610
      @atuloraon9610 Před 10 dny

      How did you fix it? I still get the error.

  • @andresespinoza3159
    @andresespinoza3159 Před rokem

    great video bro !!!!

  • @CigEconomy
    @CigEconomy Před rokem

    Netcat just hangs when I enter the command. Tried with lesser priorities, still doesn't work. Tried reinstalling, no good. Running Ubuntu on WSL2.

  • @bishalkumarshaw6597

    Excellent Tutorial!!! Just wanted to ask how can we do the same thing if I have multiple docker container talking to each other?

  • @toastybits.
    @toastybits. Před rokem

    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!

  • @vishalgupta8986
    @vishalgupta8986 Před rokem

    Please make a video on inversion of control.!!!

    • @toastybits.
      @toastybits. Před rokem

      Great suggestion. I use IOC in pretty much all production apps, so I might do a video on that soon.

  • @vishalgupta8986
    @vishalgupta8986 Před rokem

    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.

    • @toastybits.
      @toastybits. Před rokem

      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.

  • @toastybits.
    @toastybits. Před rokem

    Have you run into this error? We all have! Leave a comment if this helped you solve the issue in your project.

    • @adrian-ioanmunteanu3027
      @adrian-ioanmunteanu3027 Před rokem

      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? :(

    • @exoticme4760
      @exoticme4760 Před rokem

      ​@@adrian-ioanmunteanu3027 samee, I'm facing that error right now😢

  • @VishalGupta-nt3ej
    @VishalGupta-nt3ej Před rokem

    Nice!!! I thought you never going to upload again. Really Nice!! Keep going.

    • @toastybits.
      @toastybits. Před rokem

      Thanks Vishal, part 2 going live soon!

  • @zorol33t
    @zorol33t Před rokem

    Great tutorial. Can you share the git repo for this project?

    • @MichaelGradek
      @MichaelGradek Před rokem

      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)

    • @toastybits.
      @toastybits. Před rokem

      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

  • @usmansuleiman7998
    @usmansuleiman7998 Před rokem

    You don't need pm2 with Fargate. It automatically handles restarting your tasks on error

    • @toastybits.
      @toastybits. Před rokem

      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.

  • @piegpa
    @piegpa Před rokem

    Amazing tutorial. Please continue posting.

  • @piegpa
    @piegpa Před rokem

    Really useful. Keep on posting videos.

  • @ibrahimfarah6751
    @ibrahimfarah6751 Před 2 lety

    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

    • @toastybits.
      @toastybits. Před rokem

      Thanks for letting me know. I'm re-activating this youtube channel and will update the site very soon. Thanks!

  • @blameItleaveit
    @blameItleaveit Před 2 lety

    You are installing pm2 on the fargate, why ?

    • @toastybits.
      @toastybits. Před 2 lety

      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.

  • @Melvinn27
    @Melvinn27 Před 2 lety

    This is perfect, thank you.