Dependencies

ActivityFeed depends on the following third party libraries available as NuGet packages:
  • RavenDB
  • KnockoutJS

Changing RavenDB connection string used by ActivityFeed

ConnectionString can be changed in Web.config file under <connectionStrings> section.

    <connectionStrings>
        <add name="ActivityFeed" connectionString="Url=http://ravenDb:8080;User=u;Password=p" />
    </connectionStrings>
ConnectionString can be one of:
  • "Memory" - ActivityFeed will use embedded DocumentStore running in memory (suitable for development/debugging/unit testing).
  • file://local-path - ActivityFeed will use embedded DocumentStore with data stored in a folder pointed to by local-path (suitable for development).
  • http://raven-db-url - ActivityFeed will use RavenDB instance pointed to by the url (suitable for production).
  • A valid RavenDB connection string. See: http://ravendb.net/docs/client-api/connecting-to-a-ravendb-datastore.
If no ActivityFeed connection string is not present, Memory is assumed as default.

Registering ActivityFeed api http handler

ActivityFeed exposes a REST api used by a UI. The API is realized as a custom http handler that needs to be registered in web.config.
NOTE: This is done automatically by OpenWaves.ActivityFeed.Web NuGet package.

<location path="activityFeed">
        <system.web>
            <httpHandlers>
                <add name="AF" verb="*" path="*" type="OpenWaves.ActivityFeed.Web.Hanlder.ActivityFeedApiHandler"  />
            </httpHandlers>
        </system.web>
        <system.webServer>
            <modules runAllManagedModulesForAllRequests="true" />
            <validation validateIntegratedModeConfiguration="false" />
            <handlers>
               <add name="AF" verb="*" path="*" type="OpenWaves.ActivityFeed.Web.Hanlder.ActivityFeedApiHandler" />
      </handlers>
    </system.webServer>
  </location> 

ServiceLocator.SetResolver(new BasicResolver()
    .Register<IDocumentSessionProvider>(new DocumentSessionPerRequestProvider()));

Last edited Jul 13, 2012 at 6:02 AM by grzwie, version 7

Comments

No comments yet.