Run Nestjs Microservices & Mongo Database in Docker Containers |

Поділитися
Вставка
  • Опубліковано 8 чер 2024
  • In This tutorial we will create Nestjs microservices from the begining. Learn to create docker image of Nestjs project. Learn to run Nestjs Microservices in Docker Container with Mongo database. Step by step guide to setup Nestjs project. Coding controller, provider, module, repository, entity and dto classes. Prepare Dockerfile for Nestjs project. Building docker image for Nestjs microservices. Running microservice image in docker container with mongo db. Testing the microservices using postman api tool.
    ** Nestjs Framework **
    NestJS is a progressive Node js framework that helps build server-side applications. Nest extends Node. js frameworks like Express or Fastify adding modular organization and a wide range of other libraries to take care of repetitive tasks. Nestjs provides a modular architecture that allows developers to scale their applications. Nestjs well-structured architecture, TypeScript support, scalability, and a strong community. Choosing NestJS over plain Node. js offers advantages in terms of maintainability, type safety, productivity, and integration options.
    ** Docker Container, Image & Dockerfile **
    Docker containers are packages of software that contain all of the necessary elements to run in any environment. Containers virtualize the operating system and run anywhere, from a private data center to the public cloud or even on a developer's personal laptop.
    Docker image contains application code, libraries, tools, dependencies and other files needed to make an application run.
    Dockerfile is simply a text-based file with no file extension that contains a script of instructions. Docker uses this script to build a container image.
    ** Mongoose ORM **
    Mongoose is a Node js based Object Data Modeling (ODM) library for MongoDB. It is an Object Relational Mapper (ORM) for traditional SQL databases. Mongoose allows to enforce a specific schema at the application layer. Mongoose manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.
    ** Mongo Database **
    MongoDB database is to store unstructured data, and it provides full indexing support, and replication with rich and intuitive APIs. MongoDB architecture is made up of collections and documents. Documents are made up of Key-value pairs. Collections contain document sets.
    ** CHAPTER **
    0:00 Welcome to Nestjs Microservice Docker Container Project with Mongo DB.
    1:13 Agenda of the tutorial
    2:59 Prerequisite of the tutorial
    3:19 Architecture of the project
    7:33 Download Mongo DB Image
    10:53 Run in Docker Container
    12:47 Nestjs Project Initialization & Setup.
    14:40 Import Project in VSCode
    16:08 Installing Dependencies, Dotenv, Mongoose ORM etc
    17:02 Create Student Schema class
    18:35 Create controller, service classes via CLI
    23:04 Coding GET POST endpoints in Controller class
    25:58 Preparing Dockerfile for the project
    31:44 Create Docker Image for Nestjs Microservices.
    34:08 Finding IP address of Mongo DB Container
    38:13 Running Nestjs Microservice Image in Docker Container.
    39:17 Testing Nestjs Microservice API.
    42:35 GIT Repository
    43:16 Previous Video & Playlist
    ** Project Commands **
    Refer all commands here github.com/codeonedigest/Nest...
    #nestjs #nestjstutorial #dockerimage
    ** Previous Video Tutorial **
    Nestjs MVC Project Tutorial for JavaScript Beginners| Model View Controller • Video
    ** Nestjs Farmwork Complete Tutorial Playlist **
    • Nestjs Complete Tutori...
    ** TypeScript Complete Tutorial Playlist **
    • Typescript Introductio...
    ** GIT Repository **
    github.com/codeonedigest/Nest...
    ** CHECK OUT OUR OTHER VIDEOS **
    Shopify Ecommerce & Retail POS tutorial for Commerce Developer • Shopify Commerce & Ret...
    Create AWS EC2 Instance and Run Springboot Microservice and MongoDB in EC2 Server
    • AWS EC2 Instance Setup...
    Introduction to Salesforce Commerce Cloud • Introduction to Salesf...
    Kubernetes Tutorial for Beginners • Kubernetes Cluster Tut...
    Kubernetes Architecture Component & Cluster • Kubernetes Master & Wo...
    Kubernetes Node Affinity Taints & Tolerations • Kubernetes Node Affini...
    Why Python is Number1 language • Why Python Programming...
    ** CHECK OUR PLAYLISTS **
    AWS Cloud and Docker Containers Complete Tutorial
    • Cloud & Container Tuto...
    Kubernetes Cluster Architecture Master & Worker Node Tutorial • Kubernetes Cluster Arc...
    Spring Boot Complete Tutorial • Spring Boot Tutorial w...
  • Наука та технологія

КОМЕНТАРІ • 5

  • @codeonedigest
    @codeonedigest  4 місяці тому

    Full Video Link - ua-cam.com/video/g3pRQZSP1rU/v-deo.html
    Check out new video about Running Nestjs #Microservices in Docker Container with #Mongo DB on the #CodeOneDigest UA-cam channel! Learn to setup #nestjs project with dependencies. Learn to create #docker image of nestjs project. Learn to connect nestjs application with mongo database. #mongodb #dockerimage #dockerfile
    @nestframework @nodejs @typescript @Docker @MongoDB @JavaScript @dotenvx @npmjs @vscodetips @getpostman

  • @jagajaga6908
    @jagajaga6908 Місяць тому +1

    thank you very much!!!! Very helpfull tutorial!😀

    • @codeonedigest
      @codeonedigest  Місяць тому

      You're welcome! Do like share & subscribe our channel to grow codeonedigest family

  • @ankitwalkthrough
    @ankitwalkthrough 4 місяці тому

    Could you please share me a playlist or video where you used at least two services at time and where those services where communicate through TCP or by any message queue.
    this is look like a monolith

    • @codeonedigest
      @codeonedigest  3 місяці тому

      Have to build a video on such scenario