Fluree.NET is a .NET client library for interacting with FlureeDB, a blockchain-based graph database. This library simplifies the process of integrating FlureeDB into your .NET applications.
To install Fluree.NET, you can use the NuGet package manager:
dotnet add package Fluree.NET
After that go to your project and we need to add 2 things
using FlureeDotnetLibrary;
builder.Services.AddFlureeDotnetService();
And in app settings add this line
{
"fluree": "Your Fluree URL here"
}
Or you can new up clients manually
private readonly IFlureeIdentityService _flureeIdentityService = new FlureeIdentityService(
new PerBaseUrlFlurlClientFactory(),
"http://localhost:8090");
Here's a basic example of how to use Fluree.NET to interact with FlureeDB:
using Fluree;
class Program
{
private readonly IFlureeIdentityService _flureeIdentityService = new FlureeIdentityService(
new PerBaseUrlFlurlClientFactory(),
"http://localhost:8090");
static async Task Main(string[] args)
{
var result = await _flureeIdentityService.GenerateNewKeys();
}
}
For more detailed usage instructions and examples, please refer to the tests.
- Create and execute queries against FlureeDB.
- Authentication support for secure access.
- Simplified integration of FlureeDB into .NET applications.
Contributions to Fluree.NET are welcome! If you find any issues or have ideas for improvements, please open an issue or submit a pull request. Be sure to follow the code of conduct.
This project is licensed under the MIT License - see the LICENSE file for details.