SapphireDb 1.0.4
See the version list below for details.
dotnet add package SapphireDb --version 1.0.4
NuGet\Install-Package SapphireDb -Version 1.0.4
<PackageReference Include="SapphireDb" Version="1.0.4" />
paket add SapphireDb --version 1.0.4
#r "nuget: SapphireDb, 1.0.4"
// Install SapphireDb as a Cake Addin #addin nuget:?package=SapphireDb&version=1.0.4 // Install SapphireDb as a Cake Tool #tool nuget:?package=SapphireDb&version=1.0.4
SapphireDb - Server for Asp.Net Core
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
- 🔧 Dead simple configuration
- 🌠 Blazing fast development
- 📡 Modern technologies
- 💻 Self hosted
- 💾 Easy CRUD operations
- 🔑 Authentication/Authorization included
- ✔️ Database support
- 🔌 Actions
- 🌐 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
SapphireDb - Server for Asp.Net Core
ng-sapphiredb - Angular client
Author
License
SapphireDb - MIT License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- FileContextCore (>= 3.2.2)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 3.1.0)
- Microsoft.AspNetCore.Http (>= 2.2.2)
- Microsoft.AspNetCore.Http.Features (>= 3.1.0)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 3.1.0)
- Microsoft.AspNetCore.Identity.UI (>= 3.1.0)
- Microsoft.EntityFrameworkCore (>= 3.1.0)
- Newtonsoft.Json (>= 12.0.3)
- System.IdentityModel.Tokens.Jwt (>= 5.6.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on SapphireDb:
Package | Downloads |
---|---|
SapphireDb.RedisSync
Redis sync module for SapphireDb |
|
SapphireDb.HttpSync
Http sync module for SapphireDb |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.1.8-alpha | 993 | 6/16/2021 |
3.1.7-alpha | 976 | 3/10/2021 |
3.1.6-alpha | 948 | 3/9/2021 |
3.1.5-alpha | 1,063 | 10/26/2020 |
3.1.4-alpha | 1,067 | 10/26/2020 |
3.1.3-alpha | 991 | 10/26/2020 |
3.1.2-alpha | 1,018 | 10/26/2020 |
3.1.1-alpha | 1,120 | 8/2/2020 |
3.1.0-alpha | 1,002 | 8/2/2020 |
3.0.0 | 19,542 | 7/25/2020 |
2.2.1 | 1,124 | 7/22/2020 |
2.2.0 | 1,824 | 6/20/2020 |
2.1.3 | 1,167 | 4/4/2020 |
2.1.2 | 1,214 | 4/3/2020 |
2.1.1 | 1,163 | 3/24/2020 |
2.1.0 | 1,365 | 3/21/2020 |
2.0.0 | 1,151 | 2/24/2020 |
1.5.0 | 1,173 | 2/18/2020 |
1.4.0 | 1,222 | 2/8/2020 |
1.3.0 | 1,162 | 1/21/2020 |
1.2.0 | 1,173 | 1/15/2020 |
1.1.6 | 1,125 | 1/13/2020 |
1.1.5 | 1,222 | 1/7/2020 |
1.1.4 | 1,198 | 1/7/2020 |
1.1.3 | 1,145 | 1/6/2020 |
1.1.1 | 1,223 | 1/4/2020 |
1.1.0 | 1,262 | 1/3/2020 |
1.0.7 | 1,197 | 1/2/2020 |
1.0.6 | 1,233 | 12/27/2019 |
1.0.5 | 1,145 | 12/22/2019 |
1.0.4 | 1,180 | 12/18/2019 |
1.0.3 | 1,136 | 12/9/2019 |
1.0.2 | 1,041 | 12/8/2019 |
1.0.1 | 1,101 | 12/8/2019 |
1.0.0 | 1,142 | 12/4/2019 |