This repository contains source code for the RavenDB document database. With a RavenDB database you can set up a NoSQL data architecture or add a NoSQL layer to your current relational database.
- Windows
- Linux
- Docker
- MacOS
- Raspberry Pi
Request your license.
Download the latest version of RavenDB.
Install and set up your database.
RavenDB Bootcamp is a free, self-directed learning course. In just three units you will learn how to use RavenDB to create fully-functional, real-world programs with NoSQL Databases. If you are unfamiliar with NoSQL, it’s okay. We will provide you with all the information you need.
We keep adding new features to improve your RavenDB experience. Check out our latest improvements, updated weekly.
Access full documentation for RavenDB. Like our database, it is easy to use.
If you have any questions, or need further assistance, you can contact us directly.
Please check where to report an issue in our contribution guidelines.
If you have any questions please visit our discussions page or check Google community group archive. The solutions for the most common challenges are available. You are welcome to join!
Please check how to submit a Pull Request in our contribution guidelines.
First please review and set up prerequisites.
Running locally:
<path/to/ravendb>/Server/Raven.Server
Registering as service in Windows using rvn
utility available in the package Server directory:
<path\to\ravendb>\rvn.exe windows-service register --service-name RavenDB4
- Launch a RavenDB server instance as follows:
<path/to/ravendb>/Server/Raven.Server --ServerUrl=http://localhost:8080
-
Open a web browser and enter
http://localhost:8080
-
Click on
Databases
in the menu on the left-hand side, and then create a new database namedSampleDataDB
-
Click on
Settings
and then onCreate Sample Data
in the left menu. Now Click onCreate
-
Install .NET Core SDK. See : Downloads and PowerShell
-
Open a terminal and type:
mkdir HelloWorld
cd HelloWorld
dotnet new console
- Add the RavenDB Client package:
dotnet add package RavenDB.Client --version 6.0.0-*
- Replace the content of Program.cs with the following:
using System;
using Raven.Client.Documents;
namespace HelloWorld
{
class Shippers
{
public string Name;
public string Phone;
}
class Program
{
static void Main(string[] args)
{
using (var store = new DocumentStore
{
Urls = new string[] {"http://localhost:8080"},
Database = "SampleDataDB"
})
{
store.Initialize();
using (var session = store.OpenSession())
{
var shipper = session.Load<Shippers>("shippers/1-A");
Console.WriteLine("Shipper #1 : " + shipper.Name + ", Phone: " + shipper.Phone);
}
}
}
}
}
- Type:
dotnet restore
dotnet build
dotnet run