To celebrate the addition of some exciting new MongoDB functionality (MongoDB Query Editor and Data Browser) to Toad, we’re going to walk you through the process of installing Java, Eclipse, Toad, MongoDB and then Ruby on Rails on a clean Ubuntu 14.4 64 bit image. What follows is part 1: Install Java, Eclipse, Toad, MongoDB and then connect Toad to MongoDB. The next post (2/2) will describe installing Ruby, Rails creating a (surprise!) blogger application using Mongoid and then browsing that data in Toad. Where I could I’ve cited the sources I’ve used to give you some depth. Enjoy. Install Java In Ubuntu Terminal, Install JVM using these 3 commands: Source - http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/ $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer Success - In Ubuntu web browser install Eclipse Source - https://eclipse.org/downloads/ Choose 64 bit Linux and ‘Save File’ Right click the package downloaded in the previous step and ‘Open with Archive Manager’ Double click ‘eclipse inst’ Choose the first option - ‘Eclipse IDE for Java Developers’ Click ‘Install’ Note the Install Directory and then click Launch Workspace directory is where all your files will go: In Eclipse, choose Help | Eclipse Marketplace... Search ‘Toad’ and then ‘Install’ Success Install MongoDB - From Ubuntu command line, run the following 4 commands: Source - https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-14-04 $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 $ echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list $sudo apt-get update $ sudo apt-get install -y mongodb-org To test, Launch web browser (firefox) and go to localhost:27017. If it says this, you are good to go: Connect Toad to MongoDB In Toad Extension for Eclipse click the ‘New Connection’ Dropdown and choose MongoDB The Default Host and Port (localhost, 27017) are automatically filled in, just click ‘Test Connection’ and then ‘OK’ And Success!!! The next blog post (part 2 of 2, link here ) describes the Ruby on Rails/Mongoid/Toad connection process.
↧