/graphdb-labs

Learn time: Azure Cosmos DB for Apache Gremlin

Primary LanguageC#Apache License 2.0Apache-2.0

Template DotNet Labs

Overview

This will template to quickly start new labs or PoCs.

Requirements

The project requires .NET 7.0.

Technologies, Architecture and others stuffs more

  • ASP.NET Core
  • Clean Architecture
  • Graph Database with Neo4J
  • Docker container image
  • Test-Driven Development with MSTest
  • Swagger

Compatible IDEs

Tested on:

  • Visual Studio Code (1.75.1)

User Secrets

Enable user secrets

# Type from project root
dotnet user-secrets init
<!-- When you open the .csproj file of your project, you’ll notice 
     that a UserSecretsId element has been added as shown in the code snippet given below -->.
<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <UserSecretsId>e4f51d14-ddc1-48f4-bb34-84c114e3d6d0</UserSecretsId>
  </PropertyGroup>
</Project>

Set a secret

# Type from project root
dotnet user-secrets set "PrimaryKey" "xpto@36789@#$"

Useful commands

From the terminal/shell/command line tool, use the following commands to build, test and run the API.

  • Build the project

dotnet build
  • Run the tests

dotnet test
  • Run the application

# Run the application which will be listening on port `5099`.
dotnet run --project DotNetProject.Api