Corrected project name

Replaced "Sinky" with "Leaky" in the backend
This commit is contained in:
aronmal 2022-08-06 22:30:25 +02:00
parent fe945a3e06
commit cf92993e8a
Signed by: aronmal
GPG key ID: 816B7707426FC612
18 changed files with 38 additions and 38 deletions

View file

@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SinkyShipsAPI", "SinkyShipsAPI\SinkyShipsAPI.csproj", "{FB7A524F-B0C9-44DB-B1D9-776E01B28D93}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LeakyShipsAPI", "LeakyShipsAPI\LeakyShipsAPI.csproj", "{FB7A524F-B0C9-44DB-B1D9-776E01B28D93}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View file

@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["LeakyShipsAPI/LeakyShipsAPI.csproj", "LeakyShipsAPI/"]
RUN dotnet restore "LeakyShipsAPI/LeakyShipsAPI.csproj"
COPY . .
WORKDIR "/src/LeakyShipsAPI"
RUN dotnet build "LeakyShipsAPI.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "LeakyShipsAPI.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "LeakyShipsAPI.dll"]

View file

@ -1,6 +1,6 @@
using Microsoft.AspNetCore.SignalR;
namespace SinkyShipsAPI.Hubs;
namespace LeakyShipsAPI.Hubs;
public class GameHub : Hub
{

View file

@ -0,0 +1,3 @@
namespace LeakyShipsAPI.Model;
public record Board(Guid Id);

View file

@ -1,3 +1,3 @@
namespace SinkyShipsAPI.Model;
namespace LeakyShipsAPI.Model;
public record Player(Guid Id, string Name);

View file

@ -1,3 +1,3 @@
namespace SinkyShipsAPI.Model;
namespace LeakyShipsAPI.Model;
public record Session(Guid Id, Player PlayerOne, Player PlayerTwo);

View file

@ -1,4 +1,4 @@
using SinkyShipsAPI.Hubs;
using LeakyShipsAPI.Hubs;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();

View file

@ -8,7 +8,7 @@
}
},
"profiles": {
"SinkyShipsAPI": {
"LeakyShipsAPI": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,

View file

@ -1,6 +1,6 @@
using System.Dynamic;
namespace SinkyShipsAPI.Repositories;
namespace LeakyShipsAPI.Repositories;
public interface IRepository<T>
{

View file

@ -0,0 +1,6 @@
namespace LeakyShipsAPI.Repositories;
public class PlayerRepository
{
}

View file

@ -1,6 +1,6 @@
using SinkyShipsAPI.Model;
using LeakyShipsAPI.Model;
namespace SinkyShipsAPI.Repositories;
namespace LeakyShipsAPI.Repositories;
public class SessionRepository : IRepository<Session>
{

View file

@ -1,20 +0,0 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["SinkyShipsAPI/SinkyShipsAPI.csproj", "SinkyShipsAPI/"]
RUN dotnet restore "SinkyShipsAPI/SinkyShipsAPI.csproj"
COPY . .
WORKDIR "/src/SinkyShipsAPI"
RUN dotnet build "SinkyShipsAPI.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "SinkyShipsAPI.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "SinkyShipsAPI.dll"]

View file

@ -1,3 +0,0 @@
namespace SinkyShipsAPI.Model;
public record Board(Guid Id);

View file

@ -1,6 +0,0 @@
namespace SinkyShipsAPI.Repositories;
public class PlayerRepository
{
}