Skip to content

Commit

Permalink
begin implementing APIS for savegames
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed Jan 13, 2025
1 parent 5f2d075 commit 2617d61
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ VOLUMES_FILES=./.local/files
VOLUMES_LOGS=./.local/logs
VOLUMES_PLUGINS=./.local/plugins
VOLUMES_CONFIG=./.local/config
VOLUMES_SAVEGAMES=./.local/savegames

DB_SYSTEM=SQLITE
SERVER_API_DOCS_ENABLED=true
SERVER_LOG_LEVEL=debug
Expand Down
1 change: 1 addition & 0 deletions .testing.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ VOLUMES_MEDIA=./.local/media
VOLUMES_FILES=./.local/files
VOLUMES_LOGS=./.local/logs
VOLUMES_PLUGINS=./.local/plugins
VOLUMES_SAVEGAMES=./.local/savegames

SERVER_LOG_LEVEL=debug
SERVER_ADMIN_USERNAME=admin
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# GameVault Backend Server Changelog

## 14.0.0

### Changes

- Implement Support for Savegame Uploads & Downloads.

## 13.1.2

### Changes
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ ENV PATH=$PNPM_HOME:$PATH
ENV SERVER_PORT=8080
ENV YES=yes

RUN mkdir -p /files /media /logs /db /plugins \
&& chown -R node:node /files /media /logs /db /plugins \
&& chmod -R 777 /files /media /logs /db /plugins \
RUN mkdir -p /files /media /logs /db /plugins /savegames \
&& chown -R node:node /files /media /logs /db /plugins /savegames \
&& chmod -R 777 /files /media /logs /db /plugins /savegames \
&& sed -i -e's/ main/ main non-free non-free-firmware contrib/g' /etc/apt/sources.list.d/debian.sources \
&& apt update \
&& apt install -y curl p7zip-full p7zip-rar postgresql-common sudo \
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ The following Docker Tags are supported by Phalcode and get regular security upd
| ``early-access`` | :x: |:x:|

## Reporting a Vulnerability

Please report any vulnerabilities to Phalcode [via Email](mailto:contact@phalco.de).
1 change: 0 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Module } from "@nestjs/common";
import { APP_INTERCEPTOR } from "@nestjs/core";
import { EventEmitterModule } from "@nestjs/event-emitter";
import { ScheduleModule } from "@nestjs/schedule";

import { DisableApiIfInterceptor } from "./interceptors/disable-api-if.interceptor";
import { AdminModule } from "./modules/admin/admin.module";
import { ConfigModule } from "./modules/config/config.module";
Expand Down
1 change: 1 addition & 0 deletions src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const configuration = {
LOGS: parsePath(process.env.VOLUMES_LOGS, "/logs"),
SQLITEDB: parsePath(process.env.VOLUMES_SQLITEDB, "/db"),
PLUGINS: parsePath(process.env.VOLUMES_PLUGINS, "/plugins"),
SAVEGAMES: parsePath(process.env.VOLUMES_SAVEGAMES, "/savegames"),
} as const,
DB: {
SYSTEM: process.env.DB_SYSTEM || "POSTGRESQL",
Expand Down
3 changes: 2 additions & 1 deletion src/modules/progresses/progress.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { UsersModule } from "../users/users.module";
import { ProgressController } from "./progress.controller";
import { Progress } from "./progress.entity";
import { ProgressService } from "./progress.service";
import { SavegameService } from "./savegame.service";

@Module({
imports: [
Expand All @@ -14,7 +15,7 @@ import { ProgressService } from "./progress.service";
forwardRef(() => GamesModule),
],
controllers: [ProgressController],
providers: [ProgressService],
providers: [ProgressService, SavegameService],
exports: [ProgressService],
})
export class ProgressModule {}
4 changes: 4 additions & 0 deletions src/modules/progresses/savegame.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Injectable } from "@nestjs/common";

@Injectable()
export class SavegameService {}

0 comments on commit 2617d61

Please sign in to comment.