Posts

Showing posts from August, 2022

How to host a Git repository on a subdomain with Netlify

  Suppose you have your portfolio, as www.glynlewington.com, facilitated on Netlify and need to add your tasks onto a similar space. They are independent git storehouses and Netlify is made for facilitating from a solitary vault… however don't fear! We can have them on subdomains like project.glynlewington.com with a tiny bit of work. Photograph by Nicole Y-C on Unsplash Netlify makes it simple to have your static destinations with them for nothing. I as of late moved my portfolio from a VPS over to them, and it's extraordinary that they consequently update your site each time you push to your git vault. Previously, I had all my own undertakings additionally facilitated on subdirectories, for example www.glynlewington.com/project. This is either troublesome or incomprehensible with Netlify. Netlify is generally set up for you to have everything in one site from one git store. The trade off I came to is facilitating them on subdomains all things considered, as project.glynlewing

How to choose which validator to use: a comparison between Joi & express-validator

  Envision you have  a web based business site and you're permitting clients to make accounts utilizing their name and email. You need to ensure they join with genuine names, not something like cool_dud3. That is where we use approval to approve information sources and ensure input information keeps specific guidelines. On the lookout, we as of now have a lot of approval libraries, yet I will analyze two significant approval libraries: Joi and express-validator for express.js based applications. This examination is valuable when you have chosen to involve outer info approval library for your application based on expressjs and are to some degree not certain which one to utilize. Who is what? Joi Joi permits you to make plans or constructions for JavaScript objects (an article that stores data) to guarantee approval of key data. Express-validator express-validator is a bunch of express.js middlewares that wraps validator.js validator and sanitizer capabilities. So by definition, we c

How to automate website performance regression testing

  In another post I went over how to analyze website performance using Lighthouse, and specifically how we can automate performance monitoring with Foo’s Automated Lighthouse Check. In this post I’m going to demonstrate how we can step it up a notch by regression testing performance… automagically 🔮. What is Regression Testing? Regression Testing is a type of software testing to confirm that a recent program or code change has not adversely affected existing features. Adhering to best practice could include the below. Maintain a Strict Testing Schedule: Always maintain a continual testing schedule throughout the entire software development life cycle. Not only will this quickly force the team to adapt to a frequent testing regimen, it will also ensure the finished product is as well-tested as possible. Use Test Management Software: Unless your current software project is a simple self-developed side project, chances are you’ll have such an abundance of tests that tracking each will be