Setting up Partuza on windows

In this guide I'll assume you have just finished the 'Setting up Shindig on windows' and will be using the same programs for setting up Partuza.

Getting the source code

First we'll create a partuza directory in our web root (c:\wamp\www)

Go into the just created partuza directory, right click and select SVN Checkout, and enter http://partuza.googlecode.com/svn/trunk/ in the following dialog:

Press ok, and wait for the checkout to complete, and close the dialog by pressing ok.

 

Setting up the database

Partuza is a 'real' social network site that uses MySql as it's data storage, so we need to setup a database. The easiest way to do this is through the phpMyAdmin front-end that came with wampserver, to get there navigate your web browser to http://localhost/phpmyadmin and you should see the following web page:

Select 'Databases' from the menu's in the center, and in the following screen enter 'partuza' as the database name:

Select the partuza database in the left menu, and click the 'import' tab:

Select the partuza.sql file that is located in c:\wamp\www\partuza:

And select 'GO', you should get the following screen letting you know that the import was successfull (notice the tables that now show up on the left hand side):

 

Configuring Apache for Partuza

Now we need to tell the apache server about our new site, first of all edit your hosts file to create the 'partuza' domain name, this file is located in C:\WINDOWS\system32\drivers\etc\hosts. Add 'partuza' to the line where you added shindig in the previous guide:

And we need to create a new virtual host in the httpd-vhosts.conf file:

Here we add our 3rd host, partuza by adding the following section to your vhost config:

Partuza uses a couple of php short tags in it's templates (something that will be fixed in the future), so to make this work on windows we need to edit the php.ini file and enable them. You can do this by left clicking on the tray icon and selecting PHP -> php.ini

Goto the section that has short_open_tag and change 'Off' to 'On', and also change the asp_tags to 'On' as such:

After this you should restart your wampserver to apply our changes by left clicking it's tray icon and selecting 'Restart All Services'.

Setting up Shindig for Partuza

Note: this section has changed from the original version to include the new configuration & service adapter systems

To configure Shindig to use Partuza's handlers, navigate to your c:\wamp\www\shindig\php\config directory and create a new file: 'local.php'. In this file put the following content:

$shindigConfig = array(
        'person_service' => 'PartuzaService',
        'activity_service' => 'PartuzaService',
        'app_data_service' => 'PartuzaService',
        'extension_class_paths' => 'c:\wamp\www\partuza\Shindig'
);

This tells shindig to scan for custom classes in the "c:\wamp\www\partuza\Shindig" directory, and to use the Partuza*Service classes to retrieve and store the social information.

 

Trying out Partuza

To try out partuza go to http://partuza/ and click the 'register' link in the top nagivation bar, and enter your information (i used mine as an example, please use your own :-))

After this you get to your profile edit screen, and you can nagivate to your profile page by clicking on (still anonymous) thumbnail picture, or selecting 'profile' in the top menu:

As you can see you now have a working profile page, however to make this more interesting we need to add some gadgets! So select 'edit' next to the word 'Applications' in the left navigation, and we'll first enter our todo gadget: http://www.labpixies.com/campaigns/todo/todo.xml in the text box, and click 'Add Application' to add it to your profile:

You should then see something like this, your first gadget!

Next you could add the horoscope gadget we also use a lot in examples, by clicking edit next to applications again and entering http://www.google.com/ig/modules/horoscope.xml

There you go, now you have 2 gadgets on your profile page!

If more people register on your partuza site, you can find them through the search box at the top right, and you can become friends by clicking the 'add friend' menu option in the search result screen. Also it will be more interesting if you upload actual profile pictures in the profile editing screen (click edit next to your name).

Have fun exploring!

For more help & discussions about Partuza, see our mailing list at http://groups.google.com/group/partuza and the project page at http://code.google.com/p/partuza/