Create Nodejs JavaScript Microservices Project with Postgres Database in Docker Container

Publicado el: 03 agosto 2023
en el canal de: codeonedigest
1,451
35

In this video we will create microservices in Nodejs JavaScript with postgres database deployed in docker container. Using Express, PG & Sequelize ORM JavaScript module in this project. We will connect microservices running in node server with postgres sql database running in docker container. I will also show step-by-step code to create microservices in Nodejs. I will explain Sequelize ORM module in JavaScript. I will explain how to connect JavaScript microservice to postgres db running in docker container.

** Chapter Timestamps **
0:00 Introduction to Nodejs Javascript Microservices with Postgresdb
0:52 Agenda of this tutorial
2:46 Architecture Diagram of tutorial explained
6:37 Prerequisite of Nodejs microservice tutorial
7:36 Basic of Docker Container & Docker HUB repository
8:55 Download Postgre DB TAG from Docker HUB repository
10:31 Run Postgres DB in Docker Container
18:21 Understanding of Nodejs modules like Express, PG, Sequelize
19:57 GIT Repository of this project
21:12 Coding Microservice in Nodejs
22:43 Coding database entity and Repository components
32:34 Coding business layer components
28:00 Coding controller components
40:48 Coding routes components
43:12 Coding main app component
45:49 Coding config components
46:35 Running Microservice app
48:00 Testing Microservices end points
57:13 Stopping the docker container
59:00 Summary of Nodejs microservice with postgres sql

** Important Nodejs Packages or Modules **
• Express - Express is a node js web application framework that provides broad features for building web and mobile applications. It is used to build a single page, multipage, and hybrid web application. It's a layer built on the top of the Node js that helps manage servers and routes.

• Sequelize - Sequelize is a Node.js-based Object Relational Mapper that makes it easy to work with MySQL, MariaDB, SQLite, PostgreSQL databases, and more.

• PG - Non-blocking PostgreSQL client for Node.js. Pure JavaScript and optional native libpq bindings.

• Body-parser - Body-parser parses an HTTP request body. Specifically in the context of a POST, PATCH, or PUT HTTP requests where the information is contained in the body. body-parser allows you to access req. Also helps in parsing the DB URLs.

• UUID - UUID is used to generate 16-byte unique value. This is used for the primary keys.

** Docker Container **
A container is an isolated environment for your code. This means that a container has no knowledge of your operating system, or your files. It runs on the environment provided to you by Docker Desktop. This is why a container usually has everything that your code needs in order to run, down to a base operating system.

** Docker File **
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. This page describes the commands you can use in a Dockerfile

** Docker Image **
Docker is used to create, run and deploy applications in containers. A Docker image contains application code, libraries, tools, dependencies and other files needed to make an application run. When a user runs an image, it can become one or many instances of a container.

** Docker HUB Repository **
Docker Hub is a hosted repository service provided by Docker for finding and sharing container images with your team.

#nodejstutorial #postgres #dockertutorial

** CHECK OUT OUR OTHER VIDEOS **
Difference between Monolithic and Microservice Architecture    • Difference between Microservice & Monolith...  
Spring boot project setup:    • Spring boot Project Step by Step Tutorial ...  
Spring Boot Microservice with postgres database Project:    • Spring Boot Microservice Project with Post...  
Prepare Docker file, Container and Build Image:    • Docker Tutorial for Beginners | Create Doc...  
Deploy Docker Image AWS Elastic Container Service:    • Deploy Springboot Microservice Docker Imag...  
Solid Principle Tutorial    • Solid Principles Tutorial with Java Coding...  

** CHECK OUR PLAYLISTS **
Microservice Architecture and Microservice Design Patterns Tutorial    • Microservice Architecture & Microservice D...  
Spring Boot Complete Tutorial    • Spring Boot Tutorial with Project Setup, A...  
Docker Containers Complete Tutorial
   • Cloud & Container Tutorial with AWS Cloud ...  
Java Design Pattern Complete Tutorial with Examples    • Java Design Patterns for Student | Gang of...  


** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.


Check out our channel here:
   / @codeonedigest  
Don’t forget to subscribe!

** OUR WEBSITE **
https://codeonedigest.wordpress.com/

** GET IN TOUCH **
Email us on codeonedigest@gmail.com

FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Subscribe: https://bit.ly/3NeWQ8U
Youtube:


En esta página del sitio puede ver el video en línea Create Nodejs JavaScript Microservices Project with Postgres Database in Docker Container de Duración hora minuto segunda en buena calidad , que subió el usuario codeonedigest 03 agosto 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,451 veces y le gustó 35 a los espectadores. Disfruta viendo!