The following steps are required by everyone participating in the workshop.
Setup a Force.com Project
As with any Salesforce project, the first step is getting a new DE org.
- Go to developer.force.com and register for a new developer edition org.
- Create a new project in the IDE of your choice. Note that some features of this workshop will not be available if you do not use the Mavensmate IDE.
- Clone the files from GitHub and place them in your project.
- Compile the project to update your DE org. Note, you may need to enable Force.com Sites before the project will compile. To do so, visit Setup > Sites in your org.
Optional for non-developers
The following steps are optional for non-develops as they will be used for the advanced section at the end of this workshop.
We will use the node package manager (called npm) to install all utilities for this workshop.
- Install node from nodejs.org.
- Verify that you didn’t goof the install by running
npm -v. You should see an output similar to
Grunt is a task automation service that automates utilities when you are developing. This can include anything from compiling LESS or SCSS to deploying resource bundles to Salesforce with the Mavensmate CLI.
- If your project does not have a
project.jsonfile yet, run
npm initto create one.
- Install grunt as a project dependency by running
npm install grunt --save-dev. The
--save-devportion of the command will list grunt in your
package.jsonas a dependency. This means if anyone else works on your project, they can just run
npm installto install all required dependencies.
We will be installing some more grunt modules later, but this will be all for now.
Install the Mavensmate CLI
Mavensmate offers a command-line interface that can be installed via npm.
- Install the module by running
npm install mavensmate -g. The
-gargument means that you are installing this module globally (available from any project).