Wednesday, 23 March 2016

Installing Intellij Idea and setting up Java SDK in windows

1)  first Goto

https://www.jetbrains.com/idea/download/#section=windows

and download the appropriate version according to your system configuration 32 bit or 64


2) after installing now it's time for setting up the SDK(Java platform JDK)



http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


 Java SE Development Kit 8u77

click Accept and download 



3) to check the installed version on your system  . Open cmd and type

   java -version


4) once it done . now open Intellij Idea and create new project and there setup

    SDK path on the right side window


************************************************************************


configure  MongoDB plugin in Intellij Idea


file > settings > plugins 


search  Mongo and install  Mongo Plugin


then close and restart  Intellij Idea


**************************************************************************

right side you see the Mongo Explorer ..if you not see .. then goto

VIEW> Tool Buttons


so that now you can configure  Mongo Explorer configurations


1) click settings icon


Other Settings >  Mongo Server 



Path to the Mongo Executable :   C:\Program Files\MongoDB\Server\3.2\bin\mongo.exe



then click  Test button to check verify the path is correct or not ..it will display green check mark.




Now we need to set up Server Configuration



click Plus button & add



Label :  Localhost




ok >  apply > ok



now before  connect to the server


Open  cmd and run   Mongodb server    

>  Mongod


now in intellij idea    right click on the  Local host (in Mongo Explorer) and connect to the server


once it connected you see


> Localhost
>Local


click Mongo shell in  the  Mongo Explorer


and type


> db

 and  Run  to verify the shell working or not...


here you can type multiline commands ...they won't execute after every command..so that you can choose when you want to run it...



********************************************************************************
Reference ( Youtube > thenewboston)

https://www.youtube.com/watch?v=1NP5lLwH9F8&list=PL6gx4Cwl9DGDQ5DrbIl20Zu9hx1IjeVhO&index=2


******************************************************************************







To generate Random json  data use  following link


http://www.json-generator.com/


***************************************************************************





source code from github


https://github.com/buckyroberts/Source-Code-from-Tutorials/tree/master/Other/SampleJsonData



**************************************************************************


No comments:

Post a Comment