Friday, December 16, 2016

How to check mongodb is running or not

In the previous 2 POSTS we had shown


In this post we will show How to Check if MongoDB is running or not

Continuing the above 2 posts....

open command prompt and run the below command as shown below.

Then you can find its Shell Version, Server Version and Running Port.

Run MongoDB as Windows service

In the previous POST we had shown How to install MongoDB in Windows

http://reddyinfosoft.blogspot.in/2016/12/mongodb-installation-on-windows.html

Now in this post I will show how to ADD MongoDB as Service in windows



















Continuing the previous post...

GO to C:\MongoDB,  press "Shift Key and Right Click on Bin Folder",
Select Open command window here in the context menu and use the command as shown below.

MongoDB Installation on Windows

Here I am going to show you, how to Install MongoDB in Windows.

Go to MongoDB download Center as shown in the below link

https://www.mongodb.com/download-center#community

and select Windows Server 2008 R2 64-bit and later, with SSL support x64 from dropdown and download as shown in the below image.



























Thursday, September 1, 2016

Two way Binding in AngularJS

Here I will show you Two way Binding in AngularJS.

OutPut:


Change First and Last names inside the input fields, and the model will change automatically.
Enter First Name:
Enter Last Name:

{{firstname + " " + lastname}}


 
<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>

<div ng-app="myApp" ng-controller="myController">
    Enter First Name: <input ng-model="firstname">
<br/><br/>
Enter Last Name: <input ng-model="lastname">
    <h1 style="color:green">{{firstname + " "+lastname}}</h1>
</div>

<script>
var app = angular.module('myApp', []);
app.controller('myController', function($scope) {
    $scope.firstname = "Vara";
    $scope.lastname = "Reddy";    
});
</script>
</body>
</html>