Skip to content

Installing Rock RMS

Arran France edited this page Jun 29, 2015 · 1 revision

There are a few ways to "install" Rock, but these instructions are meant for the Rock developers. If you're just interested in developing your own plugins for Rock you can alternatively download the Rockit SDK and run it from Visual Studio after you edit the web.ConnectionStrings.config file.

You'll also need to make sure you've met the requirements.

Step 1

Clone the Rock repo or download an older Rock website zip file here, and then unzip it.

Step 2

Create an empty "RockChMS" database on your local system with a default user (owner) of "RockUser". When you run Update-Database (described below), the EF framework will create all the needed tables and data.

Step 3

If it does not exist, create an empty web.ConnectionStrings.config file under your RockWeb project. Add a connectionStrings section for a RockContext with the password you created in step 2:

<?xml version="1.0"?>
<connectionStrings>
    <add name="RockContext" connectionString="Data Source=localhost; Initial Catalog=RockChMS;
        User Id=RockUser; password=<PASSWORD>; MultipleActiveResultSets=true"
        providerName="System.Data.SqlClient" />
</connectionStrings>

Replace <PASSWORD> with the one you created in the Database step above.

If you are developing using the newer SQL Server 2012 LocalDB Edition, you can use the following connection string:

<?xml version="1.0"?>
<connectionStrings>
  <add name="RockContext" connectionString="Server=(localdb)\v11.0; Initial Catalog=RockChMS;
  Integrated Security=true; MultipleActiveResultSets=true" providerName="System.Data.SqlClient" />
</connectionStrings>

Step 4

Start Visual Studio and open the Package Manager Console window and run Update-Database as shown below. Make sure that the Start-up project for your solution is set to RockWeb and your Default project in the package manager is set to Rock.Migrations as shown here in this screenshot.

Once you do this, your RockChMS database will have all the required tables and initial seed data required to be able to run Rock as the Administrator user.

Pulling Rock Updates

In the event that you pull down the latest develop branch of Rock, you will probably need to run the Update-Database command again. This is needed in order to synchronize your development database with the changes that have been made to the core project.

Step 5

Press F5 to launch Rock in Debug mode and then login to rock using the default administrator login (admin) and password (admin).

Play Data?

You can create your own stuff as you wish, but if you want to play around with Rock using some fake test data there are some SQL scripts in the Dev Tools\Sql folder that you can run. They will populate various tables with data. WARNING: Don't run them in your production Rock database unless you want a real mess on your hands.

Execute them in this order:

  1. Populate_Plethora_of_Person_wRandomNames.sql
  2. Populate_Groups.sql
  3. Populate_Three_Families.sql
  4. Populate_DataViewCategory.sql
  5. Populate_ReportCategory.sql
  6. Populate_MarketingCampaignAds.sql
  7. Populate_Financials.sql
  8. Populate_ImpliedRelationshipGroups.sql
  9. Populate_KnownRelationshipGroups.sql

Note: If you run these, a future database migration (Update-Database) may fail because it may not expect various data to exist in the db. That just means you'll need to start with a fresh database when you run the migrations.

Clone this wiki locally