Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "webdev"


Use Auth0 to secure your NestJS application

  • Besides that, the Auth0 Management API is included to receive the current logged in user's profile.
  • Auth0 offers a generous free tier, which offers passwordless user accounts, two social identity providers (like Google, Facebook, Twitter or GitHub) and support in their community.
  • Because we also want to read the profile of an authenticated user later on, we have to activate the Auth0 Management API for the application we just created.
  • Once the Application is running, use cURL to access the API endpoints /secret and /profile.
  • The Auth0 Management API uses the sub (subject) field from the JWT response to retrieve your user profile.
  • I hope that this article will give you an idea of how you can implement an authentication provider like Auth0 in your NestJS application.

save | comments | report | share on


Two Simple Tips For Debugging In the Console

  • For my first post, I thought I would share 2 simple tips that I use when debugging Javascript in the console.
  • You might very well know these already!
  • The flurry of logs in the console can quickly become a burden of confusion.
  • What data belongs to what value, assuming we don't know what order they're even ran amidst the flow of our code?
  • We're basically using ES6 shorthand syntax to log out an object that we create on the fly.
  • What happens here is that the console.log runs as normal and evaluates to false, so the parser evaluates the second expression of the OR clause txt + "!" and returns it as they are no more expressions to check.
  • We sneaked in that log along the way and threw it away essentially.

save | comments | report | share on


Better web video with AV1 codec

  • Learn how to instantly improve online viewing experience for your users by embracing the new AV1 video format that is already supported by Chrome and Firefox.
  • This short guide will also show how to replace your GIF's with videos, using AV1 or H.264, to make your files twenty to forty times smaller.
  • Luckily, we can set a type attribute on a source element, and only the supported file will be played.
  • Even though AV1 codec is still considered experimental, you can already leverage its high-quality, low-bitrate features for a sizable chunk for your web audience (users with current versions of Chrome and Firefox).
  • We already use AV1 in production on a couple of our projects and have not encountered any significant problems (except for video compression times, but, again, we are dealing mostly with short static sequences).

save | comments | report | share on


Two Simple Tips For Debugging In the Console

  • For my first post, I thought I would share 2 simple tips that I use when debugging Javascript in the console.
  • You might very well know these already!
  • The flurry of logs in the console can quickly become a burden of confusion.
  • What data belongs to what value, assuming we don't know what order they're even ran amidst the flow of our code?
  • We're basically using ES6 shorthand syntax to log out an object that we create on the fly.
  • What happens here is that the console.log runs as normal and evaluates to false, so the parser evaluates the second expression of the OR clause txt + "!" and returns it as they are no more expressions to check.
  • We sneaked in that log along the way and threw it away essentially.

save | comments | report | share on


Getting Started with the Portfolio Template!

  • If we head to the navigation bar on the left, we can click on “Project” and explore the projects already integrated with the template.
  • You can also add more projects by clicking “New Project” in the top right.
  • We have a good looking site, so let’s let the world see it.
  • TakeShape can deploy your site to Amazon S3, Google Cloud Storage, FTP, and Netlify.
  • For this example, we will deploy to Netlify using one-click integration.
  • Let’s navigate to the drop-down at your project name in the top left → “Static Site” → “New Static Site” in the top right.
  • Here we can link our TakeShape project to Netlify.
  • Run npx tsg init and follow the command prompts to set up communication between your local environment and TakeShape.
  • Run npx tsg deploy to deploy your changes to the site hosted on Netlify.

save | comments | report | share on


#discussWhat does it take to become a jr. dev?

  • It covered my top 5 picks for Udemy web development courses for the 2019-2020 season.
  • Two viewers asked a logical question: If a Udemy coding bootcamp course won't make you a junior developer, what will?
  • dev = job ready newbie developer that is able to pass an interview & won't get fired their first month on the job) you need to be proficient with your tech communication skills, have a portfolio that goes beyond standard bootcamp projects (as 100,000 people have already done those projects and thus solved the same problem 100k times over), you need to understand how to read documentation & write basic documentation, your general problem solving skills need to be sharp (able to find a solution efficiently).
  • What other things do aspiring developers need in order achieve junior developer status?
  • Or is junior developer merely a job title?

save | comments | report | share on


I WebRTC you - building a video chat in JavaScript

  • In a nutshell, WebRTC allows you to build apps, that exchange data in real-time using a peer-to-peer connection.
  • For instance, Signal calls are done over pure WebRTC, and due to the peer-to-peer nature, work mostly without sending your call data through a third party, e.g. like Skype does now.
  • Once the called party receives an offer, it peer.createAnswer() specifying its own capabilities, e.g. if it'll also send audio and video.
  • Both parties need to exchange an offer and answer, and they need to know the other side's ICE candidates, or they won't know where to send their audio and video streams after all.
  • Our handleMessage function closely follows the sequence diagram above: When Bob receives a start_call message, he sends a WebRTC offer to the signalling server.

save | comments | report | share on


5 Things to Do After `ng new`

  • The Angular CLI is the recommended approach for starting new Angular applications, because it gives you an awesome app out of the box.
  • I don't include them here because I have found that at least on day 1 of a new project, maintaining tests can often be a distraction from figuring out how your application should be architected, but every app should ALWAYS pass lint checks, and be buildable.
  • The easiest way to start making your app look better is to add a design system like Material Design.
  • Running this command will create a web app manifest (manifest.webmanifest) which you should customize along with your favicon.ico and icons files.
  • When you get big enough, you might start reaching for more traditional database tools like Mongo/MySQL/PostgreSQL, and when you want to take full control of your backend, it's possible to do so in the same Angular project via a cool framework called NestJS.

save | comments | report | share on


5 Things to Do After `ng new`

  • The Angular CLI is the recommended approach for starting new Angular applications, because it gives you an awesome app out of the box.
  • I don't include them here because I have found that at least on day 1 of a new project, maintaining tests can often be a distraction from figuring out how your application should be architected, but every app should ALWAYS pass lint checks, and be buildable.
  • The easiest way to start making your app look better is to add a design system like Material Design.
  • Running this command will create a web app manifest (manifest.webmanifest) which you should customize along with your favicon.ico and icons files.
  • When you get big enough, you might start reaching for more traditional database tools like Mongo/MySQL/PostgreSQL, and when you want to take full control of your backend, it's possible to do so in the same Angular project via a cool framework called NestJS.

save | comments | report | share on


I WebRTC you - building a video chat in JavaScript

  • In a nutshell, WebRTC allows you to build apps, that exchange data in real-time using a peer-to-peer connection.
  • For instance, Signal calls are done over pure WebRTC, and due to the peer-to-peer nature, work mostly without sending your call data through a third party, e.g. like Skype does now.
  • Once the called party receives an offer, it peer.createAnswer() specifying its own capabilities, e.g. if it'll also send audio and video.
  • Both parties need to exchange an offer and answer, and they need to know the other side's ICE candidates, or they won't know where to send their audio and video streams after all.
  • Our handleMessage function closely follows the sequence diagram above: When Bob receives a start_call message, he sends a WebRTC offer to the signalling server.

save | comments | report | share on