SapphireDb 1.3.0

A self-hosted, easy to use realtime database

Install-Package SapphireDb -Version 1.3.0
dotnet add package SapphireDb --version 1.3.0
<PackageReference Include="SapphireDb" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SapphireDb --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SapphireDb - Server for Asp.Net Core Build Status Maintainability

SapphireDb is an open source library that enables you to easily create your own application with realtime data synchronization.

Build amazing reactive applications with realtime data synchronization and get the best results of your project.
SapphireDb should serve as a self hosted alternative to firebase and also gives you an alternative to SignalR.

Check out the documentation for more details: Documentation

Advantages

  • :wrench: Dead simple configuration
  • :stars: Blazing fast development
  • :satellite: Modern technologies
  • :computer: Self hosted
  • :floppy_disk: Easy CRUD operations
  • :key: Authentication/Authorization included
  • :heavy_check_mark: Database support
  • :open_file_folder: Supports includes/joins
  • :electric_plug: Actions
  • :globe_with_meridians: NLB support

Installation

Install package

To install the package execute the following command in your package manager console

PM> Install-Package SapphireDb

You can also install the extension using Nuget package manager. The project can be found here: https://www.nuget.org/packages/SapphireDb/

Configure DbContext

You now have to change your DbContext to derive from SapphireDbContext. Also make sure to adjust the constructor parameters.

// Change DbContext to SapphireDbContext
public class MyDbContext : SapphireDbContext
{
  //Add SapphireDatabaseNotifier for DI
  public MyDbContext(DbContextOptions<MyDbContext> options, SapphireDatabaseNotifier notifier) : base(options, notifier)
  {

  }

  public DbSet<User> Users { get; set; }

  public DbSet<Test> Tests { get; set; }
}

Register services and update pipeline

To use the SapphireDb you also have to make some changes in your Startup.cs-File.

public class Startup
{
  public void ConfigureServices(IServiceCollection services)
  {
    //Register services
    services.AddSapphireDb(...)
      .AddContext<MyDbContext>(cfg => ...);
  }

  public void Configure(IApplicationBuilder app)
  {
    //Add Middleware
    app.UseSapphireDb();
  }
}

Documentation

Check out the documentation for more details: Documentation

Implementations

Server

SapphireDb - Server for Asp.Net Core

Client

sapphiredb - JS client

ng-sapphiredb - Angular client

Author

Morris Janatzek (morrisjdev)

License

SapphireDb - MIT License

SapphireDb - Server for Asp.Net Core Build Status Maintainability

SapphireDb is an open source library that enables you to easily create your own application with realtime data synchronization.

Build amazing reactive applications with realtime data synchronization and get the best results of your project.
SapphireDb should serve as a self hosted alternative to firebase and also gives you an alternative to SignalR.

Check out the documentation for more details: Documentation

Advantages

  • :wrench: Dead simple configuration
  • :stars: Blazing fast development
  • :satellite: Modern technologies
  • :computer: Self hosted
  • :floppy_disk: Easy CRUD operations
  • :key: Authentication/Authorization included
  • :heavy_check_mark: Database support
  • :open_file_folder: Supports includes/joins
  • :electric_plug: Actions
  • :globe_with_meridians: NLB support

Installation

Install package

To install the package execute the following command in your package manager console

PM> Install-Package SapphireDb

You can also install the extension using Nuget package manager. The project can be found here: https://www.nuget.org/packages/SapphireDb/

Configure DbContext

You now have to change your DbContext to derive from SapphireDbContext. Also make sure to adjust the constructor parameters.

// Change DbContext to SapphireDbContext
public class MyDbContext : SapphireDbContext
{
  //Add SapphireDatabaseNotifier for DI
  public MyDbContext(DbContextOptions<MyDbContext> options, SapphireDatabaseNotifier notifier) : base(options, notifier)
  {

  }

  public DbSet<User> Users { get; set; }

  public DbSet<Test> Tests { get; set; }
}

Register services and update pipeline

To use the SapphireDb you also have to make some changes in your Startup.cs-File.

public class Startup
{
  public void ConfigureServices(IServiceCollection services)
  {
    //Register services
    services.AddSapphireDb(...)
      .AddContext<MyDbContext>(cfg => ...);
  }

  public void Configure(IApplicationBuilder app)
  {
    //Add Middleware
    app.UseSapphireDb();
  }
}

Documentation

Check out the documentation for more details: Documentation

Implementations

Server

SapphireDb - Server for Asp.Net Core

Client

sapphiredb - JS client

ng-sapphiredb - Angular client

Author

Morris Janatzek (morrisjdev)

License

SapphireDb - MIT License

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.3.0 60 1/21/2020
1.2.0 71 1/15/2020
1.1.6 46 1/13/2020
1.1.5 59 1/7/2020
1.1.4 129 1/7/2020
1.1.3 45 1/6/2020
1.1.1 97 1/4/2020
1.1.0 136 1/3/2020
1.0.7 91 1/2/2020
1.0.6 104 12/27/2019
1.0.5 61 12/22/2019
1.0.4 48 12/18/2019
1.0.3 57 12/9/2019
1.0.2 44 12/8/2019
1.0.1 53 12/8/2019
1.0.0 51 12/4/2019