Setting up development environment for force.com platform

For a comfortable work with force.com as a developer you need configured workspace. If you work in a team, your team might has an own convention about workspace configuration, but if you work independently or your team hasn’t such convention, you should to rise up question about such convention. Below I describe the workspace configuration which was composed as a result of about 10 independent projects which were developed by one big team which was divided to a few little teams and was mixed between projects.

Tools which would be used:

  • Eclipse IDE
  • Apache ant + salesforce migration tool
  • Git or Subversion or any other version control system

It’s a basic set of tools, and you can expand it for your needed. Usually my list of these tools expanded by:

  • Continuous integration server (Jenkins/Cruise Control/etc.)
  • Apex Data Loader
  • Force.com Explorer
  • Real Force Explorer

Eclipse

Make sure that jre or idk are installed as it required for eclipse installation. Download and unpack the latest version of Eclipse IDE for Java EE Developers to the appropriate location in your machine. My trick is unpack it to my Google Drive folder for a portable applications.

Run Eclipse and install the following plugins:

That’s all.

Apache Ant

When you work with force.com platform the Apache Ant is incredible tool. Really. In a few projects I used it and a simple text editor like Notepad++ instead using Eclipse and other tools. If you’re going to work with salesforce.com as your primary platform you should know this tool.

First of all download, install & configure Apache Ant. After that you need to download ant migration tool, the link to the latest version of it is available in your salesforce.com org through Setup –> Develop –> Tools. Here you can find links to the most popular tools. Just unpack and copy ant-salesforce.jar to “lib” folder into your ANT_HOME directory. So, ant migration tool is ready for use. For start it’s enough. More information about ant migration tool you can find here.

Version Control

I sure that you want to feel safe. That is aim of every version control system. If you’re a greenhorn in version control I suggest to start with Git. It’s awesome vcs that allows you travel back in time in your code. You can install Git, SourceTree, EGit if you prefer to use it from Eclipse. As a hosting for git projects you can use GitHub or Bitbucket, which is my choice. The other option is Subversion, you can install TortoiseSvn or Eclipse plugin like Subversive or Subclipse. I use TortoiseSvn + WinMerge as a merge client.

So, it’s all what you need for a start with salesforce.com as your primary development platform.

[force.com][tools][workspace]