Add TypeScript to your existing Node.js app

Using TypeScript, Node, and Express together
Using TypeScript, Node, and Express together
Photo by the author.

In this tutorial, you will learn how to use TypeScript in a Node.js and Express project. The purpose of the tutorial is to show you how to create a project with these technologies. Its purpose is not to debate whether you should add TypeScript or not.

Before going any further, the prerequisites are:

1. Set Up the Project

The first step is to create a directory for the project and initialise it. …


Get to know the Singleton, Factory, Builder, and Prototype patterns

Construction site
Construction site
Photo by 贝莉儿 DANIST on Unsplash.

First of all, let’s start with an explanation of what design patterns are. In the simplest terms, they allow us to reuse code for recurring problems. Instead of solving the same problems again and again, we can reuse efficient code that already works.

Why would you use design patterns? Here are some good reasons:

It’s important to note that these patterns are universal, which means they apply to other programming languages/frameworks/libraries. However, in this article, we will use Node.js …


If you’re just getting started, check out these tips

Street signs
Street signs
Photo by Jamie Street on Unsplash.

In this article, I want to talk about the top five mistakes I made as a junior developer. They are not specific to my case, and many other developers have made the same mistakes.

As a result, I want to put them in writing so that others can see and avoid them. Without further ado, let’s see what these mistakes are and how to avoid them.

1. I Did Not Ask Questions

One of the misconceptions many junior developers have is that their questions are stupid. How many times did you avoid asking a question thinking that it’s silly?

I do not know about you, but this misconception stopped me from asking a lot of questions. And guess what the result was: I was confused and did not know how to approach tasks. …


Study hard, nail the interview, get the job

Man standing on mountain with sun beaming
Man standing on mountain with sun beaming
Photo by Pablo Heimplatz on Unsplash

“In tech, interviews are harder than the actual jobs”. This is a joke, but it can be true in many cases. Thus, in this article, you will find seven GitHub repositories that will help you ace the interviews.

These repositories include information about:

Let’s dive in!

1. Coding Interview University


The basics of AWS RDS

Clouds
Clouds
Photo by Alex Machado on Unsplash.

Amazon Relational Database Service allows us to create, run, and manage relational databases in the cloud. With RDS, you can choose from six well-known relational database engines:

Why would you choose to use AWS RDS? RDS abstracts the complex tasks and lets you focus on the most important ones. For instance, RDS manages backups, patching, failure detection, and recovery by itself.

Thus, instead of spending time to do all those, you can focus on more critical tasks. …


Get better at Node and Express

Code
Code
Photo by Pankaj Patel on Unsplash.

I mainly build the back end of my applications using Node.js and Express. As a result, I have done a lot of courses on this topic. In this article, I want to present to you my favorite courses to learn Node and Express.

They vary in difficulty. Also, each course has its particularities. For instance, some teach you sessions and some do not. Therefore, they complement each other, even though there is some overlap between them.

With that said, remember that nothing helps you more than building projects yourself. Follow the courses and then put what you learned to use! Also, it’s important to note that the courses are in no particular order. …


Carving out time for personal projects can be hard

Laptop sitting on a couch
Laptop sitting on a couch
Photo by XPS on Unsplash

Working eight hours a day and having side projects can be very difficult. I know that from experience. In the beginning, I also struggled to find a balance between my work and my side projects.

However, I have found a way to organize my work and my time. I would like to think that I’ve found the perfect balance. As a result, I would like to share what I do with the hope that it can help you as well.

By the way, when I talk about projects, I don’t mean programming projects exclusively. I refer to being present on social media, creating applications, creating content, and anything related to software development. …


Opinion, Programming

Image for post
Image for post
Photo by hannah grace on Unsplash

There are already a plethora of blogs and tutorials on the internet. Thus, the question is — should you start a blog as a developer? The answer is — yes.

Even though there are lots of choices on the internet, you can differentiate yourself by providing quality information. Also, your perspective and experience are unique.

You save your future self

One of the benefits is that you save your future self from headaches. By writing about how you solve various challenges, you always have a reference to come back to. If you run into the same issue in the future, you have a quick solution.

For instance, each time I re-install my operating system, I have to set up Git aliases. The issue is that I cannot remember from the top of my head how to do it. …


Tailwind and templates

Code
Code
Photo by Pankaj Patel on Unsplash.

In this article, you will learn how to use Tailwind CSS with Node.js, Express, and Pug. The purpose of this tutorial is to teach you how to create a Node application with Tailwind CSS, Express, and Pug.

Prerequisites

Project Configuration

The first step is to create and configure our application. Run the following commands to create an empty directory called nodejs-tailwind and change the current directory to it:

mkdir nodejs-tailwind 
cd nodejs-tailwind

Now that we are in the nodejs-tailwind directory, we have to initialize our Node project. …


Programming

Image for post
Image for post

Do you want to build projects, but you struggle to get programming project ideas? Do you wonder how you could get some ideas? In this article, I will explain how you can get some inspiration to practice your programming skills.

It does not matter what type of developer you are because the advice applies to all areas of development.

Warning: Before going further, I want to mention that it does NOT mean copying. You should acknowledge and make it obvious whenever you take a piece of code from a tutorial. …

About

Catalin Pit

I am a technical writer interested in Web and Cloud Development.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store