Skip to content

Commit 4f8f833

Browse files
committed
Refactor server structure: replace existing API, auth, and database implementations with Hono framework; remove unused files and components; introduce new routing and storage mechanisms.
1 parent 48cc033 commit 4f8f833

53 files changed

Lines changed: 1804 additions & 2253 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Install Deno
22-
uses: denoland/setup-deno@v1
22+
uses: denoland/setup-deno@v2
2323
with:
24-
deno-version: v1.x
25-
26-
- name: Build step
27-
run: "deno task build"
28-
timeout-minutes: 1
29-
continue-on-error: true
24+
deno-version: v2.x
25+
cache: true
26+
27+
- name: Run Deno tasks
28+
run: deno task --recursive build
3029

3130
- name: Upload to Deno Deploy
3231
uses: denoland/deployctl@v1
3332
with:
3433
project: "boardgame"
35-
entrypoint: "./main.ts"
34+
entrypoint: "./server/mod.ts"

.gitignore

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
# dotenv environment variable files
2-
.env
3-
.env.development.local
4-
.env.test.local
5-
.env.production.local
6-
.env.local
7-
debug.log
8-
# Fresh build directory
9-
_fresh/
1+
node_modules/

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"recommendations": [
33
"denoland.vscode-deno"
44
]
5-
}
5+
}

.vscode/settings.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"deno.enable": true,
3-
"deno.lint": true,
4-
"editor.defaultFormatter": "denoland.vscode-deno",
5-
"[typescriptreact]": {
6-
"editor.defaultFormatter": "denoland.vscode-deno"
7-
}
8-
}
3+
"editor.inlayHints.enabled": "off"
4+
}

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# Fresh project
2-
3-
Your new Fresh project is ready to go. You can follow the Fresh "Getting
4-
Started" guide here: https://fresh.deno.dev/docs/getting-started
5-
6-
### Usage
7-
8-
Make sure to install Deno: https://deno.land/manual/getting_started/installation
9-
10-
Then start the project:
11-
121
```
132
deno task start
143
```
15-
16-
This will watch the project directory and restart as necessary.

client/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vite/
2+
dist/

client/deno.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"imports": {
3+
"@vitejs/plugin-react": "npm:@vitejs/plugin-react@^4.6.0",
4+
"react": "npm:react@^19.1.0",
5+
"react-dom": "npm:react-dom@^19.1.0",
6+
"vite": "npm:vite@^7.0.4"
7+
},
8+
"tasks": {
9+
"start": "vite",
10+
"build": "vite build"
11+
},
12+
"compilerOptions": {
13+
"types": [
14+
"react",
15+
"react-dom",
16+
"@types/react"
17+
],
18+
"lib": [
19+
"dom",
20+
"dom.iterable",
21+
"deno.ns"
22+
],
23+
"jsx": "react-jsx",
24+
"jsxImportSource": "react",
25+
"jsxImportSourceTypes": "npm:@types/react"
26+
}
27+
}

client/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Boardgame</title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>

client/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function App() {
2+
return <h1>Hello from Boardgame.io Deno!</h1>;
3+
}

client/src/main.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { StrictMode } from "react";
2+
import { createRoot } from "react-dom/client";
3+
4+
import App from "./App.tsx";
5+
6+
createRoot(document.getElementById("root")!).render(
7+
<StrictMode>
8+
<App />
9+
</StrictMode>,
10+
);

0 commit comments

Comments
 (0)