Skip to main content

Posts

Showing posts from September, 2024

What is cloud?

 What is cloud? Cloud is a virtual machine that provide complete system to store, compute & stream application. Cloud use internet protocol to communicate front end to backend. Cloud  handled by various service provider such as AWS(Amazon web service), Microsoft Azure, Google Cloud, IBM Cloud, etc. Type of Cloud 1)  Private Cloud: we will create cloud services in private machine that will be accessed for particular user's.it is for specific users to access the cloud machine. We will create separate VPC (Virtual private cloud environment) to access cloud machine. Bank employee can communicate and transfer and share data from each other using private cloud. 2)  Public Cloud: it is most useful cloud system that provide global scope to access cloud machine from anywhere, user's can connect cloud system using mobile device, laptop and desktop via internet services. AWS, Azure these are the part of public cloud. 3)  Community Cloud: it is for associated partners...

How to create Restfull API in NODE JS with Mongodb database using models & controllers folder.

This is most important artical that how to connect node js & mongodb and create Restfull API with separate models and controllers folder and separate file for server.js In this article i have explained all these requirements into below article.            Step1st:         Install Mongoose  and node js in your machine         npm insall mongoose      step2nd         Install express JS and moongoose in your machine         npm install express mongoose      Step3rd:        create two folders name it models and controllers and create one new          file server.js create product.js file under models and productControllers.js file under controllers Complete code of product.js file const mongoose = require(‘mongoose’); const productSchema = new mongoose.Schema({ name: { type: String, require...