Creating a Custom MojoPortal Solution: Part 1, Getting Started

Hello! I’m Carole Bennett, one of the MojoPortal Community Liasons for Arvixe.  Ian McIntosh has been doing a great job of showing you how to get an “out of the box” MojoPortal installation configured, so that you can explore all the great built-in features it has to offer.  Since he’s working that area, I’m going to start by going over how to set up a custom MojoPortal solution, suitable for custom development.

In today’s post, we’ll cover downloading source code, setting up a Visual Studio project environment, a MSSQL database, and how to set up the publish profile that will generate the actual website you’ll install on a live server.

Step 1: Download Source Code

You can download the source code associated with the latest release of MojoPortal at the Codeplex MojoPortal page. The change set contains a zip file of all the source code for the associated release. Download this to a folder on your local machine, and extract all the files.

Step 2: Create an Empty Web Application

Open Visual Studio 2010, and select File>New Project.  Select Visual C#, “ASP.Net” Empty Web Application”, and give it the name for your project.

Step 3: Prep the Project Folder

Once you’ve done that, navigate to the Project folder, and clear out any unneeded files.  It may seem roundabout, but it keeps all your projects organized in one area, and as you create more MojoPortal projects, that becomes a very important factor.

Step 4: Copy Source Code Into Project Folder

Copy all the files from the extracted source code folder into the Project folder.

Step 5: Change mojoportal.sln to Project Name

This is completely optional, but I always change the mojoportal.sln to the name of the project, to avoid confusion when working on multiple projects simultaneously.

Step 6: Open the Project in Visual Studio

Open Visual Studio back up, and select “File”>”Open Project” – navigate to the newly renamed .sln file, and open.

Step 7: Creating an Empty Database In MS SQL

Open SQL Server Management Studio to your local instance; right click on “Databases” and select “New Database”. I suggest giving it the same name as your MojoPortal project, to avoid confusion.

Step 8: Setting Up Connection String In Web.Config

Set up a connection string to the empty database you’ve just created in the web.config
If you’re the kind of person who forgets syntax, don’t sweat it – just go to http://www.connectionstrings.com/ and look it up.

Step 9: Creating Settings for Publishing

It’s handy to set up your publish profile at this point; I create a “File System” publish profile, so that I have a backup copy locally that I’ll use FileZilla to upload to my hosting provider.

In Part 2, we’ll pick up with the first “build” of MojoPortal, and we’ll start a custom UI template for our new client.  If you have any questions, please feel free to contact me at carole.bennett@arvixe.com, and I’ll be more than happy to help you out in any way I can.  Thanks!

Looking for quality mojoPortal Hosting? Look no further than Arvixe Web Hosting.

Tags: , , , , , , , , , | Posted under MojoPortal, MSSQL | RSS 2.0

Author Spotlight

Carole Bennett

Carole Bennett is the founder and principal of IndigoTea. As a professional IT consultant, Carole has provided solutions for companies as diverse as Verizon, Frito-Lay, Capital One Auto Finance, and Zales Jewelers, parlaying a unique talent for acting as a translator between the worlds of business challenges and technology solutions. She considers multi-tasking skills gained from simultaneously 1) managing a fire performance troupe, 2) raising a family, and 3) working as a full-time IT consultant excellent preparation for her current career incarnation as the driving force behind IndigoTea. "Fire-breathing redhead on a mission" is not just a metaphorical description!

2 Comments on Creating a Custom MojoPortal Solution: Part 1, Getting Started

  1. Ian says:

    Hi Carole. Great article. I’ve got my MojoPortal code downloaded and ready to go. I’m looking forward to finding out about custom templates and what I can use them for.

  2. sodua says:

    Thanks so much !!!

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 5 = 12

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>