-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from gpproton/dev-v0.1
Dev v0.1 merge with main
- Loading branch information
Showing
226 changed files
with
6,706 additions
and
2,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-ef": { | ||
"version": "7.0.2", | ||
"commands": [ | ||
"dotnet-ef" | ||
] | ||
}, | ||
"run-script": { | ||
"version": "0.5.0", | ||
"commands": [ | ||
"r" | ||
] | ||
}, | ||
"microsoft.web.librarymanager.cli": { | ||
"version": "2.1.175", | ||
"commands": [ | ||
"libman" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.idea | ||
.fleet | ||
.vscode | ||
*.sqlite3* | ||
StaticFiles | ||
**/wwwroot/lib | ||
bin | ||
obj | ||
secret.json | ||
published |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"meta-viewport": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine as base | ||
WORKDIR /app | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:7.0 as build | ||
WORKDIR /src | ||
COPY . . | ||
RUN dotnet restore src/Web/XClaim.Web.sln | ||
RUN dotnet build -c Release src/Web/Server/XClaim.Web.Server.csproj | ||
|
||
FROM build AS publish | ||
RUN dotnet publish src/Web/Server/XClaim.Web.Server.csproj -c Release -o /app/published --self-contained | ||
|
||
FROM base as runtime | ||
WORKDIR /app | ||
COPY --from=publish /app/published . | ||
ENTRYPOINT [ "dotnet", "/app/XClaim.Web.Server.dll" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
version: '3.9' | ||
|
||
volumes: | ||
db: | ||
service-files: | ||
|
||
services: | ||
service: | ||
image: gpproton/x-claim:latest | ||
restart: unless-stopped | ||
depends_on: | ||
- db | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "8000:80" | ||
environment: | ||
USER_SECRETS_ID: 836b9b8b-fd89-4aff-9286-809bda60998f | ||
ROOT_URI: "http://localhost:8000" | ||
# postgres | mysql | sqlite | ||
DB_TYPE: postgres | ||
DB_CONNECTION_STRING: "host=postgres_image;port=5432;database=x-claim;username=x-claim;password=x-claim" | ||
ASPNETCORE_URLS: "https://+:443;http://+:80" | ||
# ASPNETCORE_Kestrel__Certificates__Default__Password: dev | ||
# ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx | ||
volumes: | ||
- service-files:/app/StaticFiles/ | ||
- ~/.aspnet/https:/https:ro | ||
- ./secret.json:"/root/.microsoft/usersecrets/${USER_SECRETS_ID}/secret.json:ro" | ||
deploy: | ||
mode: replicated | ||
resources: | ||
limits: | ||
memory: 256M | ||
reservations: | ||
memory: 64M | ||
|
||
db: | ||
image: postgres:15-alpine | ||
restart: unless-stopped | ||
volumes: | ||
- db:/var/lib/postgresql/data | ||
ports: | ||
- "45432:5432" | ||
environment: | ||
POSTGRES_USER: x-claim | ||
POSTGRES_PASSWORD: x-claim | ||
POSTGRES_DB: x-claim | ||
deploy: | ||
mode: replicated | ||
resources: | ||
limits: | ||
memory: 256M | ||
reservations: | ||
memory: 64M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"sdk": { | ||
"version": "7.0.*", | ||
"rollForward": "latestPatch" | ||
}, | ||
"scripts": { | ||
"build": "dotnet build --configuration Debug", | ||
"build:web": "dotnet build src/Web/Server/", | ||
"build:app": "dotnet build src/Mobile/XClaim.Mobile.csproj", | ||
"format": "dotnet format ./XClaim.sln", | ||
"web": "dotnet watch --project src/Web/Server/", | ||
"dev:blazor": "DOTNET_USE_POLLING_FILE_WATCHER=true dotnet watch --project src/Web/Client/", | ||
"dev:web": "DOTNET_USE_POLLING_FILE_WATCHER=true dotnet r web" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace XClaim.Common.Base; | ||
|
||
public class ITimedEntity : IBaseEntity { | ||
public Guid Id { get; set; } | ||
public DateTime CreatedAt { get; set; } | ||
public DateTime? ModifiedAt { get; set; } | ||
public DateTime? DeletedAt { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace XClaim.Common.Base; | ||
|
||
public abstract class TimedEntity : ITimedEntity { | ||
new public DateTime CreatedAt { get; set; } | ||
new public DateTime? ModifiedAt { get; set; } | ||
new public DateTime? DeletedAt { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using XClaim.Common.Base; | ||
using XClaim.Common.Enums; | ||
|
||
namespace XClaim.Common.Dtos; | ||
|
||
public class ClaimStateResponse : BaseResponse { | ||
public string? Description { get; set; } | ||
public string? Notes { get; set; } | ||
public string? Currency { get; set; } = "$"; | ||
public decimal Amount { get; set; } | ||
public string? Category { get; set; } | ||
public ClaimStatus Status { get; set; } | ||
public string? Owner { get; set; } | ||
public Guid? OwnerId { get; set; } | ||
public bool Approved { get; set; } | ||
public bool Completed { get; set; } | ||
|
||
public bool Payed { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using XClaim.Common.Base; | ||
using XClaim.Common.Enums; | ||
|
||
namespace XClaim.Common.Dtos; | ||
|
||
public class NotificationResponse : BaseResponse { | ||
public UserResponse? Owner { get; set; } | ||
public Guid? OwnerId { get; set; } | ||
public bool Disabled { get; set; } | ||
public ICollection<NotificationChannels> Channels { get; set; } = default!; | ||
public ICollection<EventType> Types { get; set; } = default!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.