kurnakovv / jiraF-goal

Goal microservice of jiraF application

Home Page:https://jiraf-goal.onrender.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Main repo Hits-of-Code Render Code Smells Coverage CodeQL Codecov

Goal

Microservice with goals logic.

How to start

  • Setup ApiKey
dotnet user-secrets set "GoalApiKey" "yourApiKey" --project ".\Goal\src\jiraF.Goal.API\"
  • Start project
dotnet run --property:Configuration=Release --project .\Goal\src\jiraF.Goal.API\

Project reference https://localhost:7079/swagger/index.html

How to setup db (not required)

dotnet user-secrets set "DefaultConnection" "Server=localhost;Port=5432;Database=jiraf_goal;User Id=postgres;Password=yourPassword;" --project ".\Goal\src\jiraF.Goal.API\"
  • Edit program file from
builder.Services.AddDbContext<AppDbContext>(options =>
{
    options.UseInMemoryDatabase(TestVariables.IsWorkNow
        ? Guid.NewGuid().ToString()
        : "TestData");
    //options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection"));
});

to

builder.Services.AddDbContext<AppDbContext>(options =>
{
    // options.UseInMemoryDatabase(TestVariables.IsWorkNow
    //     ? Guid.NewGuid().ToString()
    //     : "TestData");
    options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection"));
});

About

Goal microservice of jiraF application

https://jiraf-goal.onrender.com/

License:MIT License


Languages

Language:C# 98.9%Language:Dockerfile 1.1%