Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CommBank-Server/CommBank-Server.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.2.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommBank", "CommBank.csproj", "{DA325BC3-4E6C-F2D7-EC8F-60E5F66E0C6C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DA325BC3-4E6C-F2D7-EC8F-60E5F66E0C6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DA325BC3-4E6C-F2D7-EC8F-60E5F66E0C6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DA325BC3-4E6C-F2D7-EC8F-60E5F66E0C6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DA325BC3-4E6C-F2D7-EC8F-60E5F66E0C6C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BD63C132-B843-4DAE-A50D-ED5A301B654E}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion CommBank-Server/CommBank.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.1" />
<PackageReference Include="MongoDB.Driver" Version="2.18.0" />
<PackageReference Include="MongoDB.Driver" Version="2.25.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion CommBank-Server/Models/Goal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Goal
public string? Id { get; set; }

public string? Name { get; set; }

public string? Icon { get; set; }
public UInt64 TargetAmount { get; set; } = 0;

public DateTime TargetDate { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions CommBank-Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using CommBank.Models;
using CommBank.Services;
using MongoDB.Driver;
using System.Net;

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


var builder = WebApplication.CreateBuilder(args);

Expand Down
2 changes: 1 addition & 1 deletion CommBank-Server/Secrets.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ConnectionStrings": {
"CommBank": "{CONNECTION_STRING}"
"CommBank": "mongodb+srv://intern:Test12345@cluster0.tllspza.mongodb.net/CommBank?retryWrites=true&w=majority&tls=true&tlsInsecure=true"
}
}