commit 370f43f1ff7e1ff3f47825fc24ba38204e75a5bc Author: nzambello Date: Sat Mar 9 17:01:35 2024 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/README.md b/README.md new file mode 100644 index 0000000..6dd13e7 --- /dev/null +++ b/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/bun.lockb b/bun.lockb new file mode 100755 index 0000000..e0842e4 Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..590700c --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "scripts": { + "dev": "bun run --hot src/index.ts" + }, + "dependencies": { + "hono": "^4.0.9" + }, + "devDependencies": { + "@types/bun": "latest" + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..3191383 --- /dev/null +++ b/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/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..c442b33 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "strict": true, + "jsx": "react-jsx", + "jsxImportSource": "hono/jsx" + } +} \ No newline at end of file