CouchN.CouchApp NuGet Package

A library for creating a couch app design document.

(to be used with CouchN but you could hook it up standalone)

The code uses node.js to run any "*_design.js" documents in the project and convert them to "*_design.json" (where * is the name of your design doc)

Once the json document has been created you should make it an embedded resource for the project. Then you can have your main project update design documents in couch with a one liner.

** NOTE ** you need to include the CreateDesignDoc.targets into your projects *.proj file.

Just open it in nodepad and enter this line near the botton:

<Import Project="CreateDesignDocs.targets" />

TheCouch.SetupDatabaseAndDesignDocuments<DesignDocuments>("MyDb", "http://thecouchdb:5987");

This will create a new database "MyDb" if it doesn't exist and then upload the design documents embbed in the assembly which contans the "DesignDocuments" type.




Got any CouchN.CouchApp Question?





Info

Version: 0.0.0.2
Author(s): Mark Kemper
Last Update: Monday, October 1, 2012
.NET Fiddle: Create the first Fiddle
Project Url: http://github.com/markkemper1/CouchN
NuGet Url: https://www.nuget.org/packages/CouchN.CouchApp


Install
Install-Package CouchN.CouchApp
dotnet add package CouchN.CouchApp
paket add CouchN.CouchApp
CouchN.CouchApp Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

4219