-
Creating server and Dynamic Routing in Express for starters
Here’s the code syntax for dynamic routing and server creation in express JS : Here’re the steps involved:
-
Dynamic Routing – Handling User Request in Vanilla NodeJS
Here’s a simple example of how you can dynamically route a server in pure vanilla NodeJS without any packages : Steps :
-
Don’t complicate VS Code- Use just these extensions as a web dev.
If you’re a web developer, or aspiring to be, just use these few extensions. Don’t confuse yourself by downloading dozens of unnecessary extensions. These are the only ones you need : ESLint The key feature of the ESLint VS Code extension is that it provides real-time feedback on your code by underlining issues directly in…
-
node-sass package has been depricated – try using sass
If you’ve been using SASS, you need to know that you should not use npm node-sass package from now on. It might still work if you use it, but there might be errors, problems and vulnerabilities if you’re using it now. The alternative for now should be the sass package instead. I’ve already created a…
-
How to install and get started with SASS in CSS project
First of all open up your front-end project folder and create the basic files inside it like index.html and style.css files. Assuming that you’ve setup the package.json file already, next, open up the terminal and type in the following command to install SASS as a developer dependency : In the next step, it’ll be good…
-
Stateless API vs Stateful API : Meaning and Usages
Stateless APIs In case of stateless APIs, each request from a client to the server must contain all the information needed to understand and process the request. The server does not store any session information about the client. Here, each request is independent and the server does not retain any info about previous requests. For…
-
Important NPM packages you’ll need to build complex backends with NodeJS
Whether you’re learning backend development (with nodeJS) or trying to build complex back-end while using NodeJS, keep a note of the following NPM packages. You might need all or many of them in you backend development journey. Here they are: Express JS Express is a powerful and flexible web framework for NodeJS. It’s designed to…
-
Favicon code for your HTML document
To add favicon code to your HTML document copy and paste the below code to your index.html file just below the title tag after the link code to your css file :
-
The text inside button breaks into multiple lines. How to fix this – CSS
Say you have a button like so: When you try to run it, the text splits into two lines, especially while using smaller screens. To fix this you can do this :