How to create a simple Rest API using Express framework, PostgreSQL, and coding with TypeScript

Create a Rest API with Express, PostgreSQL, TypeOrm, and TypeScript.

Prerequisites

Please make sure that Node.js (>= 10.13.0) is installed on your operating system and docker.

Init project

We need to create our project, firstly create blog directory.

Later, go to blog directory and init the project.

The last command going to create a package.json file, its purpose is to handle the history of all dependencies installed in our project.


How to deploy a NestJS Application in Heroku using GitLab CI/CD pipelines

Introduction

In previous days I wrote a little tutorial explaining how to create a NestJS application Create an API Rest With NestJS and PostgreSQL and now I will explain how to deploy it using GitLab Pipelines.

Prerequisites

We need to create an account in Heroku and GitLab.

Please make sure that Node.js (>= 10.13.0) is installed on your operating system.

Installation

NestJS

Once installed NodeJS we doing to install NestJS CLI, Command Line Interface that help us to maintain our application.

Once installed, we going to execute the next command to create our project.

You can find the core files…


In this tutorial, I will try to explain how to create an API Rest with NestJS framework.

NestJS

Introduction

NestJS is a framework for building NodeJS server-side applications, it uses progressive JavaScript, is built and support TypeScript but let developers to code in pure JavaScript, but in this case we use TypeScript.

NestJS combine OOP(Oriented Object Programming), FP(Functional Programing), and FRP(Functional Reactive Programing).

NestJS makes use of the Express library, so every technique for using the MVC (Model-View-Controller) pattern in Express applies to NestJS as well.

Prerequisites

Please make sure that Node.js (>= 10.13.0) is installed on your operating system.

Installation

To start working…


Deploy an Angular App in Tomcat Server using Azure DevOps.

Introduction

Currently, there are a lot of posts about this topic, but any of those pipeline configurations work for me, for this reason, I decided to write this little tutorial.

Background

When I trying to deploy my Angular app in Tomcat Server using Azure DevOps I had a lot of problems and I found different ways to do it, but any of these ways convinced me.

One way is to convert the build of Angular app into a war file then deploy using Apache Tomcat Manager.

So in this tutorial, I tried…

Jose Luis Campos Bautista

Software Developer

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