https://github.com/kurnakovv/jiraf-goal
Goal microservice of jiraF application
https://github.com/kurnakovv/jiraf-goal
csharp dotnet microservices microservices-architecture
Last synced: 10 months ago
JSON representation
Goal microservice of jiraF application
- Host: GitHub
- URL: https://github.com/kurnakovv/jiraf-goal
- Owner: kurnakovv
- License: mit
- Created: 2022-03-26T08:47:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T04:58:08.000Z (about 2 years ago)
- Last Synced: 2024-04-08T05:39:45.344Z (about 2 years ago)
- Topics: csharp, dotnet, microservices, microservices-architecture
- Language: C#
- Homepage: https://jiraf-goal.onrender.com/
- Size: 765 KB
- Stars: 3
- Watchers: 1
- Forks: 5
- Open Issues: 17
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/KurnakovMaksim/jiraF/)
[](https://hitsofcode.com/github/KurnakovMaksim/jiraF-goal/view?branch=main)
[](https://jiraf-goal.onrender.com/ping)
[](https://sonarcloud.io/summary/new_code?id=KurnakovMaksim_jiraF)
[](https://sonarcloud.io/summary/new_code?id=KurnakovMaksim_jiraF)
[](https://github.com/KurnakovMaksim/jiraF-goal/actions?query=workflow%3ACodeQL)
[](https://codecov.io/gh/KurnakovMaksim/jiraF)
# Goal
Microservice with goals logic.
# How to start
* Setup ApiKey
``` ps
dotnet user-secrets set "GoalApiKey" "yourApiKey" --project ".\Goal\src\jiraF.Goal.API\"
```
* Start project
``` ps
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)
* Install [postgreSQL](https://www.postgresql.org/)
* Use this [script](./Goal/db.sql)
* Configure connection string
``` ps
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
``` cs
builder.Services.AddDbContext(options =>
{
options.UseInMemoryDatabase(TestVariables.IsWorkNow
? Guid.NewGuid().ToString()
: "TestData");
//options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection"));
});
```
to
``` cs
builder.Services.AddDbContext(options =>
{
// options.UseInMemoryDatabase(TestVariables.IsWorkNow
// ? Guid.NewGuid().ToString()
// : "TestData");
options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection"));
});
```