Changeset 2859225


Ignore:
Timestamp:
10/20/25 16:10:33 (11 months ago)
Author:
imbrsk <boris696boris@…>
Branches:
master
Children:
5aa102d, 9a57e89
Parents:
0b16523
Message:

Implement user management features with database integration

Location:
iknow-api
Files:
9 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Program.cs

    r0b16523 r2859225  
     1using Microsoft.EntityFrameworkCore;
     2
    13var builder = WebApplication.CreateBuilder(args);
    24
     
    1517}
    1618
     19builder.Services.AddDbContext<AppDbContext>(options =>
     20    options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection")));
     21
     22   
    1723app.UseHttpsRedirection();
    1824
  • iknow-api/appsettings.Development.json

    r0b16523 r2859225  
    55      "Microsoft.AspNetCore": "Warning"
    66    }
     7  },
     8  "ConnectionStrings": {
     9    "DefaultConnection": "Host=localhost;Port=5432;Database=myappdb;Username=myuser;Password=kodrum2025"
    710  }
    811}
  • iknow-api/appsettings.json

    r0b16523 r2859225  
    66    }
    77  },
    8   "AllowedHosts": "*"
     8  "ConnectionStrings": {
     9    "DefaultConnection": "Host=localhost;Port=5432;Database=myappdb;Username=myuser;Password=kodrum2025"
     10  }
    911}
  • iknow-api/iknow-api.csproj

    r0b16523 r2859225  
    1010  <ItemGroup>
    1111    <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.9" />
     12    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
     13      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
     14      <PrivateAssets>all</PrivateAssets>
     15    </PackageReference>
     16    <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.4" />
    1217  </ItemGroup>
    1318
Note: See TracChangeset for help on using the changeset viewer.