Category: Web Design – Javascript

Build Secure Node Authentication with Passport.js & OpenID Connect

This article was originally published on the Okta developer blog. Thank you for supporting the partners who make SitePoint possible. Building local or social login in Node can be simple with Passport.js. There are over 500 strategies already built that make it easy to wire up identity providers. But what do you do if your identity provider doesn’t already have a pre-built strategy? Do you…

Understanding JSON Web Token Authentication

Provide User Access To An API using JWT Here, we will create a new API with two routes. The first route will be public, while the second one will require the user to be authenticated using JWT into order to access it. Let’s create a new file in the jwt-auth folder called api.js. In this file, write the following startup code: const express = require(“express”);const bodyParser…

keywords-extract – Node.js Command line tool extract keywords from any web page

Extract keywords with Node.js in the console Command line tool for keyword extraction. This Node.js project works mainly with two node modules “node-readability” that filters only the main text clearing the noise from the main text and “gramophone” module that filters the keywords from the texts. Install & Use $ npm i -g keywordsextract Example: $ keywordsextract –url https://en.wikipedia.org/wiki/Search_engine_optimization –n 3,4 You can use two…

ngx-images: Handle Broken Images In Angular Apps

Ever experienced broken image like If ever this happen that you loose your image but there will always be a backup for you. We’ve added an extra feature which will boost your page load time to upto 10X. As we load the image after the page load successfully so you angular app will turn much faster using this plugin. Getting Started npm install ngx-images –save…

Build a Simple Web App with Express, React and GraphQL

This article was originally published on the Okta developer blog. Thank you for supporting the partners who make SitePoint possible. GraphQL and React have both become quite popular in the last few years, and it’s safe to say they go together like avocado and toast. A GraphQL server can be written in Node and lets you easily create a flexible API using JavaScript classes and…

Angular 7 released

Release Highlights & Update instructions To learn about the release highlights and our new CLI-powered update workflow for your projects please check out the v7 release announcement. Dependency updates @angular/core now depends on @angular/platform-server now depends on Domino 2.1 Features Bug Fixes 6.1.10 (2018-10-10) Bug Fixes platform-browser: fix #22155, destroy hammer manager when HammerInstance.off() is run (#22156) (3b4d9dc) upgrade: properly destroy upgraded component elements and…

Announcing LearnVueJS.com: Free Vue.js Webinars

As long as I’ve been publishing the Friday Frontend, folks have been asking for help learning Vue.js. Every time I send a survey asking what y’all want, I hear back “I want to learn Vue”. And no matter how many Vue posts I publish, I hear that folks want more. So I’m trying something different. I just launched a new project with a new website:…

Smart Bundling: How To Serve Legacy Code Only To Legacy Browsers

About The Author Shubham is a front-end developer based in Bangalore. He finds himself gliding comfortably in the design-engineering continuum. Recently, he’s been … More about Shubham… While effective bundling of resources on the web has received a great deal of mindshare in recent times, how we ship front-end resources to our users has remained pretty much the same. The average weight of JavaScript and style…

graphql.js: lightest graphql client with intelligent features

graphql.js: lightweight graphql client Lightest GraphQL client with intelligent features. Originally inspired by Robert Mosolgo’s blog post Features No dependencies, plain vanilla JavaScript. Plug & Play. Isomorphic. Runs on most browsers. You don’t need to install Node.js ecosystem on your computer. Overview GraphQL is based on a very simple HTTP transaction, which sends a request to an endpoint with query and variables. Many libraries require…