Corrected project name
Replaced "Sinky" with "Leaky" in the backend
This commit is contained in:
parent
fe945a3e06
commit
cf92993e8a
18 changed files with 38 additions and 38 deletions
|
@ -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
|
20
backend/LeakyShipsAPI/Dockerfile
Normal file
20
backend/LeakyShipsAPI/Dockerfile
Normal 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"]
|
|
@ -1,6 +1,6 @@
|
|||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace SinkyShipsAPI.Hubs;
|
||||
namespace LeakyShipsAPI.Hubs;
|
||||
|
||||
public class GameHub : Hub
|
||||
{
|
3
backend/LeakyShipsAPI/Model/Board.cs
Normal file
3
backend/LeakyShipsAPI/Model/Board.cs
Normal file
|
@ -0,0 +1,3 @@
|
|||
namespace LeakyShipsAPI.Model;
|
||||
|
||||
public record Board(Guid Id);
|
|
@ -1,3 +1,3 @@
|
|||
namespace SinkyShipsAPI.Model;
|
||||
namespace LeakyShipsAPI.Model;
|
||||
|
||||
public record Player(Guid Id, string Name);
|
|
@ -1,3 +1,3 @@
|
|||
namespace SinkyShipsAPI.Model;
|
||||
namespace LeakyShipsAPI.Model;
|
||||
|
||||
public record Session(Guid Id, Player PlayerOne, Player PlayerTwo);
|
|
@ -1,4 +1,4 @@
|
|||
using SinkyShipsAPI.Hubs;
|
||||
using LeakyShipsAPI.Hubs;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services.AddControllers();
|
|
@ -8,7 +8,7 @@
|
|||
}
|
||||
},
|
||||
"profiles": {
|
||||
"SinkyShipsAPI": {
|
||||
"LeakyShipsAPI": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
|
@ -1,6 +1,6 @@
|
|||
using System.Dynamic;
|
||||
|
||||
namespace SinkyShipsAPI.Repositories;
|
||||
namespace LeakyShipsAPI.Repositories;
|
||||
|
||||
public interface IRepository<T>
|
||||
{
|
6
backend/LeakyShipsAPI/Repositories/PlayerRepository.cs
Normal file
6
backend/LeakyShipsAPI/Repositories/PlayerRepository.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace LeakyShipsAPI.Repositories;
|
||||
|
||||
public class PlayerRepository
|
||||
{
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
using SinkyShipsAPI.Model;
|
||||
using LeakyShipsAPI.Model;
|
||||
|
||||
namespace SinkyShipsAPI.Repositories;
|
||||
namespace LeakyShipsAPI.Repositories;
|
||||
|
||||
public class SessionRepository : IRepository<Session>
|
||||
{
|
|
@ -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"]
|
|
@ -1,3 +0,0 @@
|
|||
namespace SinkyShipsAPI.Model;
|
||||
|
||||
public record Board(Guid Id);
|
|
@ -1,6 +0,0 @@
|
|||
namespace SinkyShipsAPI.Repositories;
|
||||
|
||||
public class PlayerRepository
|
||||
{
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue