• Stars
    star
    3,440
  • Rank 12,404 (Top 0.3 %)
  • Language
    C#
  • License
    Other
  • Created about 14 years ago
  • Updated 6 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ACID Document Database

RavenDB - An ACID NoSQL Document Database

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.

RavenDB Studio

Supported Platforms

  • Windows
  • Linux
  • Docker
  • MacOS
  • Raspberry Pi

Grab Your License and Download Latest Version

Request your license.

Download the latest version of RavenDB.

Getting Started

Install and set up your database.

Learn RavenDB Quickly

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.

Stay Updated on New Developments

We keep adding new features to improve your RavenDB experience. Check out our latest improvements, updated weekly.

Documentation

Access full documentation for RavenDB. Like our database, it is easy to use.

Where to Ask for Help

If you have any questions, or need further assistance, you can contact us directly.

Report an Issue

Please check where to report an issue in our contribution guidelines.

RavenDB Developer Community Group

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!

Pull Requests

Please check how to submit a Pull Request in our contribution guidelines.

Setup & Run

First please review and set up prerequisites.

Launch RavenDB:

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

Hello World (.NET)

Server Side

  • 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 named SampleDataDB

  • Click on Settings and then on Create Sample Data in the left menu. Now Click on Create

Client Side

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

SAST Tools

Enjoy :)

More Repositories

1

book

RavenDB Book
C#
152
star
2

docs

Docs for RavenDB
JavaScript
114
star
3

bootcamp

C#
107
star
4

samples-yabt

"Yet Another Bug Tracker" solution sample for RavenDB and .NET with Angular UI
C#
104
star
5

ravendb-nodejs-client

RavenDB node.js client
TypeScript
62
star
6

ravenmq

Distributed Queuing System
C#
47
star
7

ravendb-go-client

Go
39
star
8

ravendb-python-client

This is the official python client for RavenDB document database
Python
31
star
9

ravendb.contrib

External Contributions to RavenDB
C#
30
star
10

quartznet-RavenDB

RavenDB JobStore support for Quartz.NET scheduler.
C#
27
star
11

awesome-ravendb

24
star
12

raven.munin

Transactional Managed Storage
C#
18
star
13

serilog-sinks-ravendb

A Serilog sink that writes events to RavenDB
C#
17
star
14

ravendb-jvm-client

RavenDB JVM Client
Java
13
star
15

IdentityServer4.Contrib.RavenDB

C#
9
star
16

ravendb-grafana-datasource

TypeScript
7
star
17

Raven.Json

Optimized DOM using Newtonsoft.Json library
C#
7
star
18

ravendb-php-client

PHP
6
star
19

helm-charts

An official Helm chart for RavenDB.
Shell
6
star
20

terraform-provider-ravendb

Go
6
star
21

ravendb-cpp-client

RavenDB C++ Client
C++
4
star
22

demo

C#
4
star
23

raven.codeanalysis

C#
3
star
24

ravendb-ruby-client

Ruby
3
star
25

silverlight

RavenDB's Silverlight Client
C#
3
star
26

ravendb-jvm-testdriver

Java
2
star
27

ravendb-jvm-embedded

Java
2
star
28

template-cloudflare-worker

A batteries included template for kick starting a TypeScript Cloudflare worker project that connects with a RavenDB Cloud database backend.
TypeScript
2
star
29

templates

Templates and starters for RavenDB
HTML
1
star
30

samples-crypto-app

C#
1
star
31

kr-benchmark-scripts

Scripts & Code to reproduce database benchmark with large dataset
C#
1
star
32

samples-jvm

Java
1
star
33

samples-hugin

SCSS
1
star
34

ravendb-python-testdriver

Python
1
star