Raven DB is an opensource ‘document database’, it can be used to store documents.
On the download page there is a zip file available, but the cool new way is to search in NuGet. So create a Visual Studio project –> Add library package reference and search for RavenDb:
Hit Install and accept license:
2] Start database
In the package folder ‘RavenDB.18.104.22.1682\Server’ there is an executable ‘Raven.Server.exe’, run it.
If you enter http://localhost:8080 a Silverlight management console turns up.
3] Coding Hello World
Create two orders, a product list and store it.
When you run the application, a file ‘Data’ is generated.
4] View the database on http://localhost:8080 and search for the just inserted order:
Or type http://localhost:8080/docs/orders/1025 in a browser and get the json back.
5] Query data
With a simple query the data can be retrieved:
In a future post the Raven DB spatial options will be explored.