From 051aa69363ad84348d3001a61b7229c3dd9cc3ed Mon Sep 17 00:00:00 2001 From: Kevin Puig <119972216+k-puig@users.noreply.github.com> Date: Fri, 26 Sep 2025 23:36:08 -0400 Subject: [PATCH] add server --- concord-server/.gitignore | 2 ++ concord-server/README.md | 11 +++++++++++ concord-server/bun.lock | 29 +++++++++++++++++++++++++++++ concord-server/package.json | 12 ++++++++++++ concord-server/src/index.ts | 9 +++++++++ concord-server/tsconfig.json | 7 +++++++ 6 files changed, 70 insertions(+) create mode 100644 concord-server/.gitignore create mode 100644 concord-server/README.md create mode 100644 concord-server/bun.lock create mode 100644 concord-server/package.json create mode 100644 concord-server/src/index.ts create mode 100644 concord-server/tsconfig.json diff --git a/concord-server/.gitignore b/concord-server/.gitignore new file mode 100644 index 0000000..506e4c3 --- /dev/null +++ b/concord-server/.gitignore @@ -0,0 +1,2 @@ +# deps +node_modules/ diff --git a/concord-server/README.md b/concord-server/README.md new file mode 100644 index 0000000..6dd13e7 --- /dev/null +++ b/concord-server/README.md @@ -0,0 +1,11 @@ +To install dependencies: +```sh +bun install +``` + +To run: +```sh +bun run dev +``` + +open http://localhost:3000 diff --git a/concord-server/bun.lock b/concord-server/bun.lock new file mode 100644 index 0000000..1eb837d --- /dev/null +++ b/concord-server/bun.lock @@ -0,0 +1,29 @@ +{ + "lockfileVersion": 1, + "workspaces": { + "": { + "name": "concord-server", + "dependencies": { + "hono": "^4.9.9", + }, + "devDependencies": { + "@types/bun": "latest", + }, + }, + }, + "packages": { + "@types/bun": ["@types/bun@1.2.22", "", { "dependencies": { "bun-types": "1.2.22" } }, "sha512-5A/KrKos2ZcN0c6ljRSOa1fYIyCKhZfIVYeuyb4snnvomnpFqC0tTsEkdqNxbAgExV384OETQ//WAjl3XbYqQA=="], + + "@types/node": ["@types/node@24.5.2", "", { "dependencies": { "undici-types": "~7.12.0" } }, "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ=="], + + "@types/react": ["@types/react@19.1.14", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-ukd93VGzaNPMAUPy0gRDSC57UuQbnH9Kussp7HBjM06YFi9uZTFhOvMSO2OKqXm1rSgzOE+pVx1k1PYHGwlc8Q=="], + + "bun-types": ["bun-types@1.2.22", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-hwaAu8tct/Zn6Zft4U9BsZcXkYomzpHJX28ofvx7k0Zz2HNz54n1n+tDgxoWFGB4PcFvJXJQloPhaV2eP3Q6EA=="], + + "csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="], + + "hono": ["hono@4.9.9", "", {}, "sha512-Hxw4wT6zjJGZJdkJzAx9PyBdf7ZpxaTSA0NfxqjLghwMrLBX8p33hJBzoETRakF3UJu6OdNQBZAlNSkGqKFukw=="], + + "undici-types": ["undici-types@7.12.0", "", {}, "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ=="], + } +} diff --git a/concord-server/package.json b/concord-server/package.json new file mode 100644 index 0000000..874da90 --- /dev/null +++ b/concord-server/package.json @@ -0,0 +1,12 @@ +{ + "name": "concord-server", + "scripts": { + "dev": "bun run --hot src/index.ts" + }, + "dependencies": { + "hono": "^4.9.9" + }, + "devDependencies": { + "@types/bun": "latest" + } +} \ No newline at end of file diff --git a/concord-server/src/index.ts b/concord-server/src/index.ts new file mode 100644 index 0000000..3191383 --- /dev/null +++ b/concord-server/src/index.ts @@ -0,0 +1,9 @@ +import { Hono } from 'hono' + +const app = new Hono() + +app.get('/', (c) => { + return c.text('Hello Hono!') +}) + +export default app diff --git a/concord-server/tsconfig.json b/concord-server/tsconfig.json new file mode 100644 index 0000000..c442b33 --- /dev/null +++ b/concord-server/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "strict": true, + "jsx": "react-jsx", + "jsxImportSource": "hono/jsx" + } +} \ No newline at end of file