uCommerce includes full API reference documentation and lots of helpful articles to help you build your e-commerce site as effortlessly as possible.
When you install uCommerce on your website, you also get an embedded RavenDB database, which uCommerce uses for faceted search. This also means that you can get the benefits of a document database without having to set it up yourself. In this article, you will learn how you can gain access to the Management Studio RavenDB comes with. You can get an overview of RavenDB Studio and which features it offers here.
The AppPool of the website needs to run as Local System, a Windows Administrator or a member of the Windows Administrator Group.
Before you can visit the studio, you need to create the document database if you haven’t already created one. You can create it by run the scratch indexer from Settings->Search in the uCommerce back office.
Now you should be able to visit the RavenDB studio for your site by using the server url (e.g. http://localhost:1337/).
With the OOTB configuration that uCommerce ships with, anonymous user is not allowed access and you will therefore get this screen.
You can log in by using your server authentication here. However, you can also change the anonymousUserAccessMode or use an API key.
You can change the OOTB setting for RavenDB by creating a new component like the one shown below.
<configuration> <components> <component id="SearchSessionProvider" service="UCommerce.Search.RavenDB.IRavenDbStoreProvider, UCommerce" type="UCommerce.Search.RavenDB.RavenDbStoreProvider, UCommerce"> <parameters> <anonymousUserAccessMode>None</anonymousUserAccessMode> <ravenDatabasePath>~/App_Data/RavenDatabases/uCommerce</ravenDatabasePath> </parameters> </component> </components> </configuration>
You can read more about component in this article.
The anonymousUserAccessMode paramenter sets the level of access that you want the studio to run with.
The ravenDatabasePath is the place where the document store will be stored on you server.
If you want to use a API key as authentication, you must add #api-key=
If you do not want to provide API Key in the URL, you can add #has-api-key, so the Studio will open up a dialog where you can enter your key, before any Studio-Server communication.
You can create an API key by go to Settings in the RavenDB management studio and press New API Key:
You can read more about the RavenDB Management Studio here, where you can get help to use the Studio.