Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
chore(sandbox): update to new rivet.json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Sep 17, 2024
1 parent f37cfdf commit 0632132
Show file tree
Hide file tree
Showing 9 changed files with 270 additions and 81 deletions.
4 changes: 2 additions & 2 deletions sandbox/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenGB E2E Test</title>
<title>Rivet Modules E2E Test</title>
</head>
<body>
<h1>OpenGB E2E Test</h1>
<h1>Rivet Modules E2E Test</h1>

<div>
<label for="environmentToggle">Environment:</label>
Expand Down
261 changes: 261 additions & 0 deletions sandbox/deno.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sandbox/game_server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ let gameConfig = {
interface GameState {
lobbyConfig: any;
lobbyTags: any;
scores: { [id: number]: number };
scores: Record<number, number>;
}

const gameState: GameState = {
Expand Down
2 changes: 1 addition & 1 deletion sandbox/backend.dev.json → sandbox/rivet.dev.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./backend.json",
"extends": "./rivet.json",
"modules": {
"lobbies": {
"registry": "local",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions sandbox/scripts/fetch_state.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env -S deno run -A

const origin = Deno.env.get("OPENGB_ORIGIN");
const endpoint = Deno.env.get("BACKEND_ENDPOINT");

const res = await fetch(`${origin}/modules/lobbies/scripts/fetch_lobby_manager_state/call`, {
const res = await fetch(`${endpoint}/modules/lobbies/scripts/fetch_lobby_manager_state/call`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
72 changes: 0 additions & 72 deletions sandbox/scripts/gen_sdk.ts

This file was deleted.

4 changes: 2 additions & 2 deletions sandbox/scripts/reset_state.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env -S deno run -A

const origin = Deno.env.get("OPENGB_ORIGIN");
const endpoint = Deno.env.get("BACKEND_ENDPOINT");

const res = await fetch(`${origin}/modules/lobbies/scripts/reset_lobby_manager_state/call`, {
const res = await fetch(`${endpoint}/modules/lobbies/scripts/reset_lobby_manager_state/call`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion sandbox/scripts/run_local_backend.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

opengb dev --project backend.dev.json
rivet dev --project rivet.dev.json

0 comments on commit 0632132

Please sign in to comment.